フィルターのクリア

how can I vary the parameters in s-functions

2 ビュー (過去 30 日間)
Parsa
Parsa 2014 年 3 月 25 日
回答済み: Chandrasekhar 2014 年 3 月 28 日
I have a simulink model with a Matlab Level-1 S-Function block. It has some parameters that are all written in structure form and constant valuse. I want to vary one of these valuse in a specific range , sth like "for loop" , and to have the certain and seperate output values for each of those variable values. how can I do this ? Also can we use an S-Function in a for loop ? for example by handling or inlining it ? Details are here: First I wrote an M-File and defined my parameters : v_data=struct('Kcr_f',1,'Kcr_r',1,'u0',30)
then I developed my S-Function ,specified v-data in "mdlInitializeSizes" ,and run it very well; Yes , no problem with these constant valuse.
Now I want to vary the parameter "u0" from 1 to 40 and have seperate outputs from each of these varying values ; how can I do this ?
Tnx for your attention

回答 (1 件)

Chandrasekhar
Chandrasekhar 2014 年 3 月 28 日
the parameters which has to be varied should be declared as parameters in the function definition of the s function.

カテゴリ

Help Center および File ExchangeBlock and Blockset Authoring についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by