sim command not opening Simulink model but workspace shows output variable ans ?!
古いコメントを表示
What I'm tryin to do is to run a Simulink file from Matlab script so that I don't have to open it seperately. My Simulink model takes values from Matlab's workspace. So what I indent to do is run the maltab which put the variable with values into workspace, then run (simulate) the simulink model from matlab script only.
I'm using sim command but it doesn't seem to work (not running the simulink model), but there's this ans variable that shows up in workapsace area that is of no use to me. I'ven't used any "To Workspace" block either.

採用された回答
その他の回答 (1 件)
Esen Ozbay
2021 年 9 月 6 日
Is it possible that you have created a variable or another function with the same name? Try the command
which sim
to see what MATLAB is calling when you execute.
1 件のコメント
Suraj Singh
2021 年 9 月 7 日
編集済み: Suraj Singh
2021 年 9 月 7 日
カテゴリ
ヘルプ センター および File Exchange で Event Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
