Simulate the response of the continuous model:
sim(mdl_continuous);
T1 = simout.time;
Y1 = simout.signals.values;
Plot the simulation of both the discrete and continuous models. Note that the response
becomes more oscillatory as the sample time is increased.
plot(T1,Y1,'k',T2,Y2,'r',T3,Y3,'g')
xlabel('Time (sec.)')
ylabel('Engine Speed Response');
legend('Continuous Controller','Ts = 0.1','Ts = 0.25');
grid
9 Classical Control Design