Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2011-11-08
帖子: 2
声望力: 0 ![]() |
![]()
我下载了希尔伯特变换的程序包,也成功加载,可是调用函数时出错。调用函数及错误如下:
fs=8192;N=4096; t=(0:N-1)*1/fs; [imf,ort,nbits]=emd(x,t,[0.05,0.5,0.05]); L=size(imf,1); X=0; for i=1:L; X=imf(i,+X; end [A,f,tt] = hhspectrum(imf,t,l,0); 下面是报错: Warning: HILBERT ignores imaginary part of input. > In hilbert at 39 In hhspectrum at 44 Undefined function 'instfreq' for input arguments of type 'double'. Error in hhspectrum (line 45) f(i,=instfreq(an(i,',tt,l)'; 求高手解答!感激不尽 [S,freq]=hspec(imf,N); 下面是报错: Warning: HILBERT ignores imaginary part of input. > In hilbert at 39 In hspec at 39 Undefined function 'instfreq' for input arguments of type 'double'. Error in hspec (line 45) freq(:,i) = instfreq(z(:,i)); % instantaneous frequency |
![]() |
![]() |
![]() |
#2 |
初级会员
注册日期: 2012-08-23
帖子: 3
声望力: 0 ![]() |
![]()
X=imf(i,+X;
这是什么情况,怎么就一半括号啊?? 你没有定义这个‘instfreq’函数吧?我是这样理解的。 |
![]() |
![]() |