主题: [MATLAB信号处理] 希尔伯特变换
查看单个帖子
旧 2012-09-04, 21:10   #1
songzhen2566
初级会员
 
注册日期: 2011-11-08
帖子: 2
声望力: 0
songzhen2566 正向着好的方向发展
默认 希尔伯特变换

我下载了希尔伯特变换的程序包,也成功加载,可是调用函数时出错。调用函数及错误如下:
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
songzhen2566 当前离线   回复时引用此帖