Introduction - If you have any usage issues, please Google them yourself
% [TMIN,TMAX,ZMIN,ZMAX] = BOUNDARY_CONDITIONS_EMD(INDMIN,INDMAX,T,X,Z,NBSYM)
%
% inputs:
% - INDMIN, INDMAX: indices of minima and maxima in the real signal X
% - T: sampling times
% - X: real signal in which INDMIN and INDMAX are the indices of extrema
% - Z: signal which values are interpolated in the final envelope
% - NBSYM: number of points added to each end
%
% outputs:
% - TMIN, TMAX: extended sampling times
% - ZMIN, ZMAX: extended "extrema" set