Model Settings / Configuration parameters updating using script
2 次查看(过去 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().
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!