Showing posts with label window. Show all posts
Showing posts with label window. Show all posts

Tuesday, April 20, 2010

Plotting an Accurate PSD Estimate in MATLAB

% This script plots the power spectral density estimate
% of a signal --Alper Ucar, ucar {at} ieee {dot} org
% data: output stream in time-domain
% fftlen: FFT length
% Fs: sampling rate
% pxf: mean-square power of the signal
function[pxf] = pspec(data,fftlen,Fs)