Change workspace variable name

16 ビュー (過去 30 日間)
Thomas LE DIOURON
Thomas LE DIOURON 2013 年 10 月 25 日
コメント済み: Thomas LE DIOURON 2014 年 4 月 8 日
Hello,
I have lot of workspace variables for a Simulink project and I would like to rename all of them in a Matlab script. I know how to retrieve the variable contents but I don't know how to rename the variable. Could you help me?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 25 日
If you want to rename A to B
B=A
clear A
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 25 日
Why evalin? while B=A is simple
Thomas LE DIOURON
Thomas LE DIOURON 2014 年 4 月 8 日
With only B=A, the variables deals with the Base Workspace, not with the model workspace.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by