필터 지우기
필터 지우기

Why do I get a different response when using the "step" command in the command line and the scope in Simulink?

조회 수: 71 (최근 30일)
I have a MIMO (10 outputs and 5 inputs) state transition matrix I don't understand why do I get different responses when invoking a step input in the command line and in Simulink. Can someone give me a light on this?

채택된 답변

Birdman
Birdman 2017년 10월 30일
편집: Birdman 2017년 10월 30일
It is because of the solver. In Simulink, you probably use variable step solver, which is more accurate. In MATLAB Command line, you can overcome this situation by making the simulation with a small step size that you define, so you will get more accurate results.
t = 0:1e-6:10;
step('your model',t)
Try the code above.
  댓글 수: 2
Birdman
Birdman 2017년 10월 30일
It is up to you. The code above is to improve the performance of the step function in command line.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by