how ro rename matrix

조회 수: 26 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by