Tunable parameters when generating S-function in simulink (Matlab/Simulink R2016b)
2 次查看(过去 30 天)
显示 更早的评论
When generating S-function (in simulink), how can i make all parameters tunable automatically ? (Instead of checking all the boxes manually.)
This is really fastidious, because i have something like 500 parameters...
Please Help me.
0 个评论
回答(1 个)
Gargi Patil
2021-3-24
If I've understood correctly, you would like set all the parameters in the model as tunable.
You can use the following command to do so:
set_param(modelname, 'DefaultParameterBehavior', 'Tunable');
1 个评论
Manoj Kumar
2021-4-16
@Gargi Patil Your solution didn't worked for me. I have parameters above 1000 and as said by @Arnaud Feiguel all the parameters need to be selected manually. Thats very painfull :-(
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!