First, use MATLAB to draw the system signal transfer block diagram, then extract the transfer function from the block diagram, and finally plot the system’s step response curve.
clear ;[a1, b1, c1, d1]=linmod(‘ex202501’);ss1=ss(a1, b1, c1, d1);tf1=tf(ss1);figure(1);step(tf1);grid on;hold on;num1=tf1.num{1};den1=tf1.den{1};t1=0:0.01:25;x2=20.0*sin(2.0*pi*3*t1);y2=lsim(num1,den1,x2,t1);plot(t1,y2);