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

14 ビュー (過去 30 日間)
Pat Canny
Pat Canny 2019 年 4 月 22 日
回答済み: Pat Canny 2019 年 4 月 22 日
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 Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by