Filter löschen
Filter löschen

Change workspace variable name

5 Ansichten (letzte 30 Tage)
Thomas LE DIOURON
Thomas LE DIOURON am 25 Okt. 2013
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?

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 25 Okt. 2013
If you want to rename A to B
B=A
clear A
  3 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 25 Okt. 2013
Why evalin? while B=A is simple
Thomas LE DIOURON
Thomas LE DIOURON am 8 Apr. 2014
With only B=A, the variables deals with the Base Workspace, not with the model workspace.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Large-Scale Modeling finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by