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 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