%function [] = UseEMD(x,t)
function [] = UseEMD()
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
N = 39;% # of data samples
t = linspace(0,1,N);
x=[20.34
21.25
20.62
19.3
17.6
15.68
15.46
16.27
17.94
18.97
18.71
18.47
19.11
19.31
18.67
17.32
16.21
16.09
16.04
17.54
19.3
20.11
20.42
21.33
21.94
22.17
22.97
23.09
23.39
23.97
26.71
29.31
29.82
30.35
29.78
27.94
27.17
27.83
27.36
];
y=fft(x);
plot(y,x);
[imf,ort,nbits] = emd(x);
emd_visu(x,t,imf,1);
%¾ùÖµµÄƽ·½
imfp2=mean(imf,2).^2
%ƽ·½µÄ¾ùÖµ
imf2p=mean(imf.^2,2)
%¸÷¸öIMFµÄ·½²î