How to set parameters of a M-S-Function on a simulink model from GUI??

Hi there! I know that we can use 'set_param' to change a parameter in one simulink block from a MatLab GUI. http://www.mathworks.fr/fr/help/simulink/slref/set_param.html
But I use a Level2 M-S-Function block on a simulink model that uses two parameters. How can I change those parameters during the simulation of the model through the GUI??
Thank you very much!
Natxo

 Accepted Answer

just in case you're as dumb as me, if you're looking for the answer: Remember that a MS Function is just another block, so you can access its parameters like another one:
Build a string like : params = 'val_param1 , val_param2 , val_param3...'
set_param('Path_to_your_block','Parameteres', params );
And there you go (at least, it worked for me).

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Asked:

on 5 Feb 2014

Answered:

on 7 Feb 2014

Community Treasure Hunt

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

Start Hunting!