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

 채택된 답변

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

댓글 수: 1

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by