to find rise time, settling time, overshoot, steady-state error by a model generated in Simulink ?

32 ビュー (過去 30 日間)
Nguyen 2013 年 11 月 7 日
コメント済み: Nguyen 2013 年 11 月 7 日
I see that in matlab, to find out rise time or settling time of a control system, just need to use step command, and right-mouse on the graph, characteristics/rise time. But I do not know how we do it in Simulink ?

回答 (1 件)

Jonathan LeSage
Jonathan LeSage 2013 年 11 月 7 日
I am assuming that you're already providing a step input to your Simulink model via the 'Generate step function' block. If you're using a scope block in Simulink to view the results, you can set that block to save the simulation to the MATLAB workspace as an array.
From there, you can simply feed the simulation results into stepinfo. If you check the documentation file, you see that the stepinfo function returns everything that you're looking for!
Hope this helps to get you started!
  1 件のコメント
Nguyen 2013 年 11 月 7 日
I fed the simulation results into stepinfo, but it didnot return anything, the return like: ans= 2x1 struct array with fields: settling time settlingMin settlingMax Overshoot ....... It didnot return any value of time. You said I've got to check the documentation file, you mean double click on the file in the workspace that saved the simulation ?



Help Center および File ExchangeSimulink Environment Customization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by