ratio1.m

来自「一种新的时频分析方法的matlab源程序。」· M 代码 · 共 31 行

M
31
字号
function r = ratio1(h)
  
% The function RATIO1 calculates the non-orthogonal leakage of components.
%
% Calling sequence-
% r=ratio1(h)
%
% Input-
%	h	- 2-D matrix h(n,k) of IMF components
%		 excluding the trend component.
% Output-
%	r	- value of the ratio:
%		(|h1*h2|+...+|hk-1*hk|)/(h1+...hk)^2.
%

%----- Get dimensions and initialize
[npt,knb] = size(h);
a1=0;

%----- Calculate the ratio
for i=1:knb-1,
   for j=i+1:knb,
      a1=a1+sum(h(:,i).*h(:,j));
   end
end
h=sum(rot90(h));
h=h.*h;
a2=sum(h);
r=a1/a2;

⌨️ 快捷键说明

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