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

问题描述:

在用Matlab仿真时出现以下问题 怎么改啊
Undefined function or method 'conv2' for input arguments of type 'char'.
Error in ==> conv at 40
c = conv2(a(:),b(:),shape);
1个回答 分类:综合 2014-10-29

问题解答:

我来补答
参数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)');
 
 
展开全文阅读
剩余:2000
上一页:求形状的题不会