28 January 2010
[Click to cite this article]
[hide academic citations]
AMA citation:
Jiang W. Robust Signal Smoothing Method in Matlab (smoothN). Stone Studio. 2010. Available at: http://wei-jiang.com/programming/matlab/robust-signal-smoothing-method-in-matlab-smoothn. Accessed July 31, 2010.
APA citation:
Jiang, Wei. (2010). Robust Signal Smoothing Method in Matlab (smoothN). Retrieved July 31, 2010, from Stone Studio Web site, http://wei-jiang.com/programming/matlab/robust-signal-smoothing-method-in-matlab-smoothn
Chicago citation:
Jiang, Wei, "Robust Signal Smoothing Method in Matlab (smoothN)", Stone Studio, posted January 28, 2010, http://wei-jiang.com/programming/matlab/robust-signal-smoothing-method-in-matlab-smoothn (accessed July 31, 2010).
Harvard citation:
Jiang, W 2010, Robust Signal Smoothing Method in Matlab (smoothN), Stone Studio. Retrieved July 31, 2010, from <http://wei-jiang.com/programming/matlab/robust-signal-smoothing-method-in-matlab-smoothn>
MLA citation:
Jiang, Wei. "Robust Signal Smoothing Method in Matlab (smoothN)." Stone Studio. 28 Jan. 2010. 31 Jul. 2010 <http://wei-jiang.com/programming/matlab/robust-signal-smoothing-method-in-matlab-smoothn>
Thank you for your interest.
Damien Garcia has produced a 1-D to N-D robust smoothing matlab file to allow fast and robust smoothing of one-dimensional and multidimensional data w/wo missing values.
A simple example for signal:
y = cos(x/10)+(x/50).^2 + randn(size(x))/10;
y([70 75 80]) = [5.5 5 6];
is shown below:

In a continuous time domain, this might be like this:
You know might know why the algorithm is robust.
Reference
Garcia D, Robust smoothing of gridded data in one and higher dimensions with missing values. Computational Statistics & Data Analysis, 2009, doi:10.1016/j.csda.2009.09.020 (PDF).
Narasimha M. et al, On the computation of the discrete cosine transform, IEEE Trans Comm, 26, 6, 1978, pp 934-936.
FYI: The DCT is closely related to the discrete Fourier transform. You can often reconstruct a sequence very accurately from only a few DCT coefficients, a useful property for applications requiring data reduction.