Matlab & Simulink answers for state space model are different?

조회 수: 1 (최근 30일)
Shehara Perera
Shehara Perera 2018년 2월 9일
댓글: Shehara Perera 2018년 2월 10일
Plots of matlab and simulink state-space model are different. Matlab stepplot makes sense and correct.But simulink model with same matrices and same input is not. Cannot find what went wrong?

채택된 답변

Birdman
Birdman 2018년 2월 10일
It is because that in your code, you discretize your system already and most probably you used discretized version in Simulink, which are Ad,Bd,Cd,Dd but you need to use continuous forms of them and make the discretizing in Simulink explicitly. See the attached model. Run it and see the results.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by