Model Settings / Configuration parameters updating using script
8 ビュー (過去 30 日間)
古いコメントを表示
For the automated simulation purposes, I need to update Model Settings / Configuration parameters updating using script. Mainly Input and Start time, Stop time. Is there any option how to do it?
0 件のコメント
回答 (1 件)
Fangjun Jiang
2024 年 2 月 15 日
set_param(mdl,"StartTime","10","StopTime","40")
Hover your mouse over the property (e.g. Input), right click, select "What's this?". It will bring up a help page where you can find the programming property name. Then use get_param() and set_param().
3 件のコメント
Fangjun Jiang
2024 年 2 月 26 日
set_param(mdl,"LoadExternalInput","on","ExternalInput","[t,u]")
参考
カテゴリ
Help Center および File Exchange で Model, Block, and Port Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!