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

1 vue (au cours des 30 derniers jours)
Arnaud Feiguel
Arnaud Feiguel le 11 Oct 2019
Commenté : Manoj Kumar le 16 Avr 2021
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.

Réponses (1)

Gargi Patil
Gargi Patil le 24 Mar 2021
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 commentaire
Manoj Kumar
Manoj Kumar le 16 Avr 2021
@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 :-(

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by