how to write a nested for loop to run simulink based models for n number of iterations of gain values ?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Aerospace Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!