• 大小: 965B
    文件类型: .m
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: Matlab
  • 标签: plot_hht  

资源简介

程序matlab

资源截图

代码片段和文件信息

function plot_hht(xTs)
% Plot the HHT.
% plot_hht(xTs)

% :: Syntax
%    The array x is the input signal and Ts is the sampling period.
%    Example on use: [xFs] = wavread(‘Hum.wav‘);
%                    plot_hht(x(1:6000)1/Fs);
% Func : emd

% Get HHT.
imf = emd(x);
for k = 1:length(imf)
   b(k) = sum(imf{k}.*imf{k});
   th   = angle(hilbert(imf{k}));
   d{k} = diff(th)/Ts/(2*pi);
end
[uv] = sort(-b);
b     = 1-b/max(b);

% Set time-frequency plots

评论

共有 条评论

相关资源