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','*')?

 Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by