필터 지우기
필터 지우기

how to use evalin?

조회 수: 9 (최근 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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by