defining simulink variables through matlab srcript
조회 수: 1 (최근 30일)
이전 댓글 표시
how can I define variables through matlab script? I am using trial version
댓글 수: 0
답변 (1개)
galaxy
2019년 10월 29일
You can create variables to workspace and in simulink, enable acess to base workspace.
For create variables via script, let 's try as following
v = genvarname('name_variable', who);
eval([v '= 1']); %% assign variable value
댓글 수: 2
galaxy
2019년 10월 30일
You must using "name_variable" in simulink model which same as workspace, and in model, please acess to base workspace as following
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!