帮忙看一下程序错哪?
fs=wavread('kesou.wav');ls=length(fs);
xk=fs(1:ls);
sound(xk,50000);
figure(1);
fs=fs(:,1)
plot(abs(fs));
title('原始信号');
figure(2);
stem(abs(fs));
title('原始离散信号');
P=zeros(1,ls);
a=min(fs)
b=max(fs)
k=a:b
for x=1:ls
P(k)=length(find(k==x))/(ls);
end
循环的怎么做啊 ?有负有正的数组~~感激不尽啊`~~
[ 本帖最后由 eight 于 2007-7-16 10:58 编辑 ] 原帖由 shouyi164 于 2007-7-14 12:05 发表 http://www.chinavib.com/forum/images/common/back.gif
fs=wavread('kesou.wav');
ls=length(fs);
xk=fs(1:ls);
sound(xk,50000);
figure(1);
fs=fs(:,1)
plot(abs(fs));
title('原始信号');
figure(2);
stem(abs(fs));
title('原始离散信号');
P=zeros(1 ...
建议先看看置顶贴:聚宝盆,把你的问题叙述清楚
页:
[1]