Get editable parameters of blocks
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dear all,
As we know, we can use get_param function for get value of parameter blocks which we know the parameter name.
Example:
We can get value of constant value parameter (name is 'Value') via:
>> get_param('Model/Constant', 'Value')
ans =
'2'
So, how to get all of edit-able parameters of all block in model ???
If we check one-by-one block, then take a long time. So do anyone have ideas for this task.
Many thanks,
0 comentarios
Respuestas (1)
stozaki
el 7 de En. de 2020
Thank you for your question about get_param function.
Please test :
allParams = get_param(gcbh, 'ObjectParameters');
Regards,
stozaki
0 comentarios
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!