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

조회 수: 1 (최근 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.

답변 (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 CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by