Quite recently, I implemented the HANTS algorithm in MATLAB. HANTS originally was developed at NLR (http://gdsc.nlr.nl/gdsc/en/tools/hants) to remove the cloud effects and temporally interpolate data. The program is available free of charge from the provided link.
HANTS can be used to remove the outliers, smooth the data set, interpolate the missing data, and to compress the data.
For more information on HANTS implementation on MATLAB and some outputs you can click here.