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

10 visualizaciones (últimos 30 días)
Pat Canny
Pat Canny el 22 de Abr. de 2019
Respondida: Pat Canny el 22 de Abr. de 2019
I like to use get_param and set_param on model blocks - how do I get a list of a given block's parameters?

Respuesta aceptada

Pat Canny
Pat Canny el 22 de Abr. de 2019
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.

Más respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by