Tutorial for the HHT MATLAB program
A few examples of how to use these programs are given, with a given dataset “gsta.dat”,
which is the annual mean global surface temperature anomaly. In “gsta.dat”, the first column is the
time; and the second is the corresponding data value.
1) Load and display data
>> load gsta.dat;
>> plot(gsta(:,1),gsta(:,2));
>> axis([1850 2010 -0.6 0.6]);
>> title('the annual mean global surface temperature anomaly')
>> xlabel('year')
>> ylabel('Kelvin')
2) Using the program as a traditional EMD tool
The eemd.m can be used as an EMD decomposition tool:
>> year=gsta(:,1);
>> inData=gsta(:,2);
>> rslt=eemd(inData,0,1);
>> plot(year,rslt(:,2));
>> hold on;
>> plot(year,rslt(:,3)-0.3);
>> plot(year,rslt(:,4)-0.6);
>> plot(year,rslt(:,5)-0.9);
>> plot(year,sum(rslt(:,6:8),2)-1.3,'r-');
>> hold off
>> set(gca,'yTickLabel',[]);
>> axis([1850 2010 -1.8 0.3]);
>> xlabel('year');