这个matlab程序显示错误?Error using ==> conv A and B must be vectors.
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/17 02:55:38
这个matlab程序显示错误?Error using ==> conv A and B must be vectors.是什么原因?
a=wavread('F:\WO.wav');
subplot(6,1,1),plot(a);
N=32;
for
i=2:6
h=linspace(1,1,
(i-1)*N);
%形成一个矩形窗,长度为N
En=conv(h,a.*a);
%求卷积得其短时能量函数En
subplot(6,1,i),plot(En);
if(i==2)
legend('N=32');
elseif(i==3) legend('N=64');
elseif(i==4)
legend('N=128');
elseif(i==5) legend('N=256');
elseif(i==6)
legend('N=512');
end
end
a=wavread('F:\WO.wav');
subplot(6,1,1),plot(a);
N=32;
for
i=2:6
h=linspace(1,1,
(i-1)*N);
%形成一个矩形窗,长度为N
En=conv(h,a.*a);
%求卷积得其短时能量函数En
subplot(6,1,i),plot(En);
if(i==2)
legend('N=32');
elseif(i==3) legend('N=64');
elseif(i==4)
legend('N=128');
elseif(i==5) legend('N=256');
elseif(i==6)
legend('N=512');
end
end
把断点设置在En=conv(h,a.*a);所在行,用size(a)检查a的维数,若a的维数为N,2说明为立体声,应一个声道一个声道的处理,即En(:,1)=conv(h,a(:,1).*a(:,1));En(:,2)=conv(h,a(:,2).*a(:,2)).估计问题应该在这.
再问: 大神,能帮我改一下整段程序吗?我matlab刚刚接触
再问: 大神,能帮我改一下整段程序吗?我matlab刚刚接触
这个matlab程序显示错误?Error using ==> conv A and B must be vectors.
matlab如何解决?Error using ==> conv A and B must be vectors.
MATLAB 错误?Error using ==> plot3 Vectors must be the same len
matlab 提示错误是:Error using ==> plot Vectors must be the same l
一段matlab程序,Error using ==> conv2 A and B must be full double
matlab错误 Error using ==> mpower Inputs must be a scalar and
新手使用matlab出现Error using ==> plot Vectors must be the same le
关于出现 MATLAB Error using ==> plot Vectors must be the same le
求解释: MATLAB Error using ==> plot Vectors must be the same le
Matlab Error using ==> plot Vectors must be the same lengths
MATLAB程序,这个程序不知道为什么出现?Error using ==> mpower Matrix must be
MATLAB运行错误:Error using plot Vectors must be the same lengths