Different time response of same trasfer function in matlab and simulink
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Mehran
il 9 Ago 2018
Modificato: Ameer Hamza
il 10 Ago 2018
I am modeling the mechanical component of an accelerometer and tf is MechCmp =
4.313e-09
---------------------------------
4.313e-09 s^2 + 0.05545 s + 149.9
when i use step(MechCmp) i get this response
but when i give step ip to its Simulink tf block of the exact same values it takes much time and gives a straight line as o/p. I also tried LTI block and state space model of the same tf but problem is same.i found answers saying that simulink uses ode solvers instead of fixed sample time, can anyone explain to me how to do disable ode solvers or use fixed sample time in simulink. or anyother suggestion
0 Commenti
Risposta accettata
Dimitris Kalogiros
il 9 Ago 2018
Then you can change your solver:
I suggest " variable-step discrete " solver
Più risposte (1)
Ameer Hamza
il 9 Ago 2018
The Simulink is giving the same plot as MATLAB, the problem in the display is happening because The system step response has a very small magnitude (approx 2.9e-11) and the settling time is also very small (approx 2e-3 seconds). You need to scale the scope axis properly, to see the same graph. Change the Simulation Stop time to 0.01 seconds and scale the axis using the button shown in the red box
2 Commenti
Ameer Hamza
il 10 Ago 2018
Modificato: Ameer Hamza
il 10 Ago 2018
I am using R2018a. Please try to run the attached file to see if it work correctly.
Vedere anche
Categorie
Scopri di più su General Applications in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!