how ro rename matrix

 采纳的回答

newmatrixname = matrix1;

2 个评论

how can you delete the old matrix so that when you type matrix1 no matrix will be displayed?
@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

0 个投票

You can also do it interactively from the Workspace Browser - mark the variable and click it again and then you could rename it.

类别

在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by