Tunable parameters when generating S-function in simulink (Matlab/Simulink R2016b)

1 回表示 (過去 30 日間)
Arnaud Feiguel
Arnaud Feiguel 2019 年 10 月 11 日
コメント済み: Manoj Kumar 2021 年 4 月 16 日
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.

回答 (1 件)

Gargi Patil
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
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 :-(

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by