Is there anyway to get all adjustable parameters of a Simulink model to Matlab workspace?

The get_param('Model/Block_Name','Parameter') only returns the specific 'Parameter' from Simulink model to workspace. For example, g_svalue=get_param('simple/Gain','Gain') returns the value of Gain to workspace.
However, I would like to have a command/way to get all adjustable parameters of a block to workspace? Commnad like get_param('Simple/Gain','All') or get_param('Simple/Gain','*')?

 Accepted Answer

get_param('mymodel/myblock','ObjectParameters')

1 Comment

Thank you very much. It gives all parameters, including the none-adjustable ones.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!