Quick spectral analysis plots

Version 1.2.0.0 (3.43 KB) by Matthew
Create quick spectral analysis plots.
2.5K Downloads
Updated 14 Jul 2010

View License

Inputs:
data - the data for spectral analysis
K - averaging parameter, explained below
beta - beta value for the Kaiser window
out_form - spectral analysis option
samp_freq - data sampling frequency

Outputs:
out - calculated spectral estimate in form specified by out_form

Averaging Parameter:
The spectra are smoothed by averaging over windows 1/K times the full
length of data. This smoothing method is based upon a technique described
in section 13.4 of "Numerical Recipies in C++", Second Edition.

Windowing:
Each of the above windows are multiplied with a Kaiser window with the
provided window beta value given by the beta input parameter.

Output Format Options:
'as' - amplitude spectrum
'ps' - power spectrum
'asd' - amplitude spectral density
'psd' - power spectral density
'rms' - integrated rms motion

Cite As

Matthew (2024). Quick spectral analysis plots (https://www.mathworks.com/matlabcentral/fileexchange/27881-quick-spectral-analysis-plots), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Corrected a bug which stops this script working with multi-column data.

1.0.0.0