how ro rename matrix

28 ビュー (過去 30 日間)
Tor Fredrik Hove
Tor Fredrik Hove 2011 年 10 月 17 日
I have made a matrix
matrix1=[1:4;3:6]
matrix1 =
1 2 3 4
3 4 5 6
how can I rename it?

採用された回答

Harry MacDowel
Harry MacDowel 2011 年 10 月 17 日
newmatrixname = matrix1;
  2 件のコメント
Tor Fredrik Hove
Tor Fredrik Hove 2011 年 10 月 17 日
how can you delete the old matrix so that when you type matrix1 no matrix will be displayed?
Jan
Jan 2011 年 10 月 17 日
@Tor: "clear matrix1". Please read the Getting Started chapters of the documentation. A powerful tool like MATLAB requires studying the docs urgently.

サインインしてコメントする。

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by