Calculate PSD of a signal using Welch algorithm

Version 1.0.0.0 (1.96 KB) by Roni Peer
A short function I've revised a long time ago to calculate the PSD of a signal.
1.4K Downloads
Updated 29 Dec 2011

View License

This function Calculates Power Spectral Density of signal vector X using Welch's averaged periodogram method.
X is divided into sections, then windowed by the WINDOW parameter.
The magnitude squared of the length NFFT DFTs of the sections are averaged to form Pxx. Pxx is length NFFT/2+1 for NFFT even. the default fot WINDOW is a rectangular window .
Fs is the sampling frequency which is used for scaling of plots.

Original Author(s): T. Krauss, 3-26-93
Copyright (c) 1984-94 by The MathWorks, Inc.
Revised by: Roni P, 10.8.01

Cite As

Roni Peer (2024). Calculate PSD of a signal using Welch algorithm (https://www.mathworks.com/matlabcentral/fileexchange/34383-calculate-psd-of-a-signal-using-welch-algorithm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Parametric Spectral Estimation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0