Azzera filtri
Azzera filtri

Using Paramater set in Simulink model

1 visualizzazione (ultimi 30 giorni)
Benjamin
Benjamin il 26 Lug 2011
I have a simulink model that I want to use a paramater set, however several of the paramaters are arrays, normally I have been using this notation to set up the variable g1 = [1 2 3] and this to access it G1(1) besides for rewriting all the variables is there anyway to get this to work (I am currently storing the variable at paramset.g1 and calling the model using sim('model', paramset)

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 27 Lug 2011
It should work, e.g.
paramset.g1=1:3;
paramset.g1(2)=20

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by