Effacer les filtres
Effacer les filtres

how to write a nested for loop to run simulink based models for n number of iterations of gain values ?

2 vues (au cours des 30 derniers jours)
for KA=1:5
for KR=1:5
simOut= sim('model_name');
theta; % to workspace out put
theta.Time; % step response run time
theta.Data; % step response (amplitude)
SI=stepinfo(theta.Data,theta.Time)
Ts=SI.SettlingTime % setting time
Mp=SI.Overshoot % over shoot
end
end

Réponses (1)

djedoui Nassim
djedoui Nassim le 15 Mar 2019
Can you give more details?

Catégories

En savoir plus sur Aerospace Applications 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