我运行测试小程序的时候出现的问题是:
>> t=1:500;
t=t*1/2000;
x=sin(2*pi*20*t);
y=0.4*sin(2*pi*40*t+140);
z=x+y;
plot(t,z)
imf=emd(z);
emd_visu(z,1:length(z),imf)
[A,f,tt]=hhspectrum(imf);
[im,tt]=toimage(A,f);
disp_hhs(im);
colormap(flipud(gray))
??? Undefined function or variable 'isvector'.
Error in ==> C:\MATLAB6p5\toolbox\emd_package\emds\emd.m (init)
On line 744 ==> if ~isvector(x)
Error in ==> C:\MATLAB6p5\toolbox\emd_package\emds\emd.m
On line 160 ==> [x,t,sd,sd2,tol,MODE_COMPLEX,ndirs,display_sifting,sdt,sd2t,r,imf,k,nbit,NbIt,MAXITERATIONS,FIXE,FIXE_H,MAXMODES,INTERP,mask] = init(varargin{:});
什么原因呢? |