作业帮 > 综合 > 作业

在用Matlab仿真时出现以下问题 怎么改啊

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/06 04:32:09
在用Matlab仿真时出现以下问题 怎么改啊
Undefined function or method 'conv2' for input arguments of type 'char'.
Error in ==> conv at 40
c = conv2(a(:),b(:),shape);
参数shape应该指明是'full' 、'same'还是'valid'
再问: 在2007上能 2010上就不行了 a=1000; t1 = -5:1/a:5; f1=heaviside(t1); f2=imp(t1); subplot(3,1,1); plot(t1,f1); axis([-5,5,0,1.2]); xlabel('时间(t)'); ylabel('f1(t)'); subplot(3,1,2); plot(t1,f2); axis([-5,5,0,1.2]); xlabel('时间(t)'); ylabel('f2(t)'); y=conv(f1,f2);t=-10:1/a:10; subplot(3,1,3); plot(t,y); axis([-5,5,0,1.2]); xlabel('时间(t)'); ylabel('y(t)');