qiuqia17 发表于 2006-6-8 21:05

In an assignment A(I) = B, the number of elements in B and I must be the same

???In an assignmentA(I) = B, the number of elements in B and I must be the same.

clear; t=0:0.001:0.5;
x=(1+0.2*sin(2*pi*7.5*t)).*(cos(2*pi*30*t+0.5*sin(2*pi*15*t)))+sin(2*pi*120*t);
=emd(x);
u=imf1(1,:); v=imf1(2,:);

u1=hilbert(u'); uf=abs(u1); up=angle(u1);
freq = abs(diff(up)); df=/200;
dd=min(freq):df:max(freq);

for n1=1:length(dd)-1
b=find(freq>dd(n1)&freq<dd(n1+1));
for n2=2:length(b)
uf1=uf; uf1(b(n2))=uf1(b(n2))+uf1(b(n2-1)); u=uf1(b(n2));
end
t(n1)=u;
end

[ 本帖最后由 ChaChing 于 2010-7-9 09:27 编辑 ]

cdwxg 发表于 2006-6-8 23:05

emd?<BR>自定义的?<BR>估计是赋值语句出错

ChaChing 发表于 2010-7-9 09:27

常见的程序出错问题整理 (eight), 13F
http://forum.vibunion.com/forum/thread-46001-1-1.html
页: [1]
查看完整版本: In an assignment A(I) = B, the number of elements in B and I must be the same