different results using simlink and script

9 views (last 30 days)
Abdul
Abdul on 16 Jun 2014
I would like to ask why I got different results (step response) using Simulink compare to script
although the system is simple unstable second order
Script:
Ksn=5000; Ki=158; m=3.14; Kx=1.58e6; Kp=10; Td=0.001;
s = tf('s');
G= Ksn*Ki/(m*s^2-Kx)
Gc=Kp*(Td*s+1);
Gl=G*Gc;
Gf=feedback(Gl,1);
step (Gf)

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!