how to use evalin?

7 Ansichten (letzte 30 Tage)
wenchao zhang
wenchao zhang am 21 Okt. 2023
Kommentiert: Walter Roberson am 21 Okt. 2023
hello, i have a cell s, and s{1} = 'EngDa_jEng_C',now i want implement the commands(EngDa_jEng_C = Simulink.Parameter),i want realized in a script, i want use evalin, i try use following, but failed,what is the right way?
evalin('base',' s{1} = Simulink.Parameter');
  1 Kommentar
Walter Roberson
Walter Roberson am 21 Okt. 2023
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval for information about why we strongly recommend against creating variable names dynamically.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Install Products finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by