how to use evalin?

12 ビュー (過去 30 日間)
wenchao zhang
wenchao zhang 2023 年 10 月 21 日
コメント済み: Walter Roberson 2023 年 10 月 21 日
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 件のコメント
Walter Roberson
Walter Roberson 2023 年 10 月 21 日
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.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by