How do I get a list of a Simulink block's parameters?

10 次查看(过去 30 天)
I like to use get_param and set_param on model blocks - how do I get a list of a given block's parameters?

采纳的回答

Pat Canny
Pat Canny 2019-4-22
This can be accomplished using 'ObjectParameters'. Here is an example from the Simulink Documentation:
load_system('vdp')
ModelParameterNames = get_param('vdp','ObjectParameters')
This will list all of the 'vdp' model's parameters. The same can be done for a model block.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by