how ro rename matrix

27 Ansichten (letzte 30 Tage)
Tor Fredrik Hove
Tor Fredrik Hove am 17 Okt. 2011
I have made a matrix
matrix1=[1:4;3:6]
matrix1 =
1 2 3 4
3 4 5 6
how can I rename it?

Akzeptierte Antwort

Harry MacDowel
Harry MacDowel am 17 Okt. 2011
newmatrixname = matrix1;
  2 Kommentare
Tor Fredrik Hove
Tor Fredrik Hove am 17 Okt. 2011
how can you delete the old matrix so that when you type matrix1 no matrix will be displayed?
Jan
Jan am 17 Okt. 2011
@Tor: "clear matrix1". Please read the Getting Started chapters of the documentation. A powerful tool like MATLAB requires studying the docs urgently.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Grzegorz Knor
Grzegorz Knor am 17 Okt. 2011
You can also do it interactively from the Workspace Browser - mark the variable and click it again and then you could rename it.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by