A=[-0.5572,-0.7814;0.7814,0];
B=[1 0]';
C=[1.9691 6.4493];
D=[0];
G=ss(A,B,C,D);
G1=tf(G);
figure;
subplot(2,2,1)
step(G1);
grid on;
title('step response');
xlabel('t');ylabel('c(t)');
subplot(2,2,2)
;impulse(G1);
title('impulse response');
xlabel('t');ylabel('c(t)');
grid on;
x0=[1 0];
subplot(2,2,3);
initial(G,x0);
title('x0=[1,0] zero input response');
xlabel('t');ylabel('c(t)');
grid on;
s=tf('s')
G2=G1/s^2;
subplot(2,2,4);
impulse(G2,10);
title('ramp response');
xlabel('t');ylabel('c(t)');
grid on;
1
最新推荐文章于 2024-05-20 15:42:52 发布