MATLAB Answers

Get editable parameters of blocks

5 views (last 30 days)
galaxy
galaxy on 10 Dec 2019
Answered: stozaki on 7 Jan 2020
Dear all,
As we know, we can use get_param function for get value of parameter blocks which we know the parameter name.
Example:
constant.PNG
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 Comments

Sign in to comment.

Answers (1)

stozaki
stozaki on 7 Jan 2020
Thank you for your question about get_param function.
Please test :
allParams = get_param(gcbh, 'ObjectParameters');
This block property is documented in the get_param.
Regards,
stozaki

  0 Comments

Sign in to comment.

Tags

Products


Release

R2018b

Translated by