mssgolay
Smooth signal with peaks using least-squares polynomial
Syntax
Description
mssgolay(
smooths raw noisy signal data, X,Intensities)Intensities, using a least-squares
digital polynomial filter (Savitzky and Golay filters) and plots the result. The default
span or frame is 15 samples.
Use mssgolay with data from any separation technique that produces
signal data, such as spectroscopy, NMR, electrophoresis, chromatography, or mass
spectrometry.
stores the smoothed data as Yout = mssgolay(X,Intensities)Yout. This syntax does not plot the
data.
specifies options using one or more name-value arguments in addition to the arguments in the
previous syntaxes.Yout = mssgolay(X,Intensities,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
The original algorithm by Savitzky and Golay assumes the input vector,
X, has uniformly spaced separation units, whilemssgolayalso allows one that is not uniformly spaced. Therefore, the sliding frame for smoothing is centered using the closest samples in terms of theXvalue and not in terms of theXindex.When the input vector,
X, does not have repeated values orNaNvalues, the algorithm is approximately twice as fast.When the input vector,
X, is evenly spaced, the least-squares fitting is performed once so that the signal is filtered with the same coefficients, and the speed of the algorithm increases considerably.If the input vector,
X, is evenly spaced and theSpanvalue is even, span is incremented by1to include both edge samples in the frame.
Version History
Introduced before R2006a
See Also
mspalign | msbackadj | msdotplot | msalign | msheatmap | mslowess | msnorm | mspeaks | msresample | msppresample | msviewer
Topics
- Mass Spectrometry and Bioanalytics
- Preprocessing Raw Mass Spectrometry Data
- Visualizing and Preprocessing Hyphenated Mass Spectrometry Data Sets for Metabolite and Protein/Peptide Profiling
- Differential Analysis of Complex Protein and Metabolite Mixtures Using Liquid Chromatography/Mass Spectrometry (LC/MS)
