画出一阶系统单位阶跃响应、单位脉冲响应、单位斜坡响应曲线
t=0:0.1:7;
num=[1];
den=[1 1];
figure;
c1=impulse(num,den,t);
plot(t,c1,‘b-’);
xlabel(‘t/s’);ylabel(‘c(t)’);grid on; figure;
c2=step(num,den,t);
plot(t,ones(size(t)),‘r-’,t,c2,‘b-’);
xlabel(‘t/s’);ylabel(‘c(t)’);grid on; figure;
c3=lsim(num,den,t’,t);
plot(t,t,‘r-’,t,c3,‘k-’);
xlabel(‘t/s’);ylabel(‘c(t)’);grid on;