Effacer les filtres
Effacer les filtres

Simulink Mask Parameter

2 vues (au cours des 30 derniers jours)
Sal
Sal le 5 Sep 2011
Hi, There is the possibility to change the value of a mask parameter from matlab? For instance i'd like to make the number of the iteration of this block programmable.. Thank you

Réponse acceptée

Paulo Silva
Paulo Silva le 5 Sep 2011
For example one Subsystem called Subsystem on a model called untitled, SG is one mask variable, to change that variable do this:
set_param('untitled/Subsystem','SG','10') %now the variable is equal to 10
If you change with the model running you need to update the simulation
set_param('untitled', 'SimulationCommand', 'update')

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by