Model Settings / Configuration parameters updating using script
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Fangjun Jiang
il 15 Feb 2024
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 Commenti
Fangjun Jiang
il 26 Feb 2024
set_param(mdl,"LoadExternalInput","on","ExternalInput","[t,u]")
Vedere anche
Categorie
Scopri di più su Model, Block, and Port Callbacks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!