我在运行程序的时候,运行到命令行
[im,tt1]=toimage(A,fa,tt,length(tt));
的时候总是有如下错误提示
??? Error: File: toimage.m Line: 59 Column: 1
This statement is not inside any function.
(It follows the END that terminates the definition of the function "toimage".)
谢谢指点,我的toimage.m中有格式错误,现可以运行了,但是当运行采样序列较长的信号时还会出现错误:
[x,fs]=wavread('ci1.wav');
>> x=x(100:1:30000);
>> imf=emd(x);
>> [A,fa,tt]=hhspectrum(imf);
>> [E, tt1] = toimage(A,fa,tt,length(tt));
??? Out of memory. Type HELP MEMORY for your options.
Error in ==> toimage at 64
im(splx,sply) = 0;