Matlab & Simulink answers for state space model are different?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Shehara Perera
am 9 Feb. 2018
Kommentiert: Shehara Perera
am 10 Feb. 2018
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?
0 Kommentare
Akzeptierte Antwort
Birdman
am 10 Feb. 2018
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Event Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!