matlab已知连续系统函数,求在x=sin(t)u(t)、x=e^(-t)*x(t)的输入下的输出

发布时间:2021-02-26 06:41:06

matlab已知连续系统函数,求在x=sin(t)u(t)、x=e^(-t)*x(t)的输入下的输出我写的程序,前两个图都能打出来,后面两个图出不来,以及这么算还算对么?a=[1,3,2];b=[4,1];sys=tf(b,a);t=0:0.2:5;h=impulse(sys,t);subplot(2,2,1);plot(h);xlabel('t');ylabel('h(t

网友回答

在执行plot(t,y2);语句出现问题
Error using ==> plotVectors must be the same lengths.
即t和y不同阶.t 的数值个数少于y2的数值个数.
以上问题属网友观点,不代表本站立场,仅供参考!