⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hhspectrum.m

📁 hilbert-huang 变换分析一段脉搏波 运行maihht即可
💻 M
字号:
function [A,f,tt] = hhspectrum(imf,t,l,aff)% [A,f,tt] = HHSPECTRUM(imf,t,l,aff) computes the Hilbert-Huang spectrum%% inputs:% 	- imf : matrix with one IMF per row%   - t   : time instants%   - l   : estimation parameter for instfreq%   - aff : if 1, displays the computation evolution%% outputs:%   - A   : amplitudes of IMF rows%   - f   : instantaneous frequencies%   - tt  : truncated time instants%% calls:%   - hilbert  : computes the analytic signal%   - instfreq : computes the instantaneous frequencyfs=100%采样频率if nargin < 2  t=1:size(imf,2);endif nargin < 3  l=1;endif nargin < 4  aff = 0;endlt=length(t);tt=t((l+1):(lt-l));for i=1:(size(imf,1)-1)  an(i,:)=hilbert(imf(i,:)')';%   an(i,:)=an(i,:)-mean(an(i,:));  f(i,:)=instfreq(an(i,:)',tt,l)';%   f(i,:)=(1-f(i,:))*fs/2;%   f(i,:)=f(i,:)*fs;  A=abs(an(:,l+1:end-l));  if aff    disp(['mode ',int2str(i)', trait])  endend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -