FFT, PSD, and CSD

Fast Fourier Transform, Powder Spectral Density, and Cross Spectral Density
736 Downloads
Aktualisiert 15 Mai 2019

Lizenz anzeigen

function Result=FFT(x, Fs)

Fast (Discrete) Fourier Transform of a Signal

inputs
x : input sequence (1*Ndata)
Fs: sampling frequency

outputs
Result structure consists of
Result.f : frequency (1*NumUniquePts)
Result.MX : amplitude (1*NumUniquePts)
Result.Arg : Phase Angle (1*NumUniquePts)

------------------------------------------------------------------
function Result=PSD(x, Fs,window,N,p)

Power Spectral Density of a Signal (This function do the averaging for the spectral density)

inputs
x : input sequence (1*Ndata)
Fs: sampling frequency
window : window size
N: Number of windows
p: overlap ratio of windows

outputs
Result structure consists of
Result.f : frequency (1*NumUniquePts)
Result.MX : amplitude (1*NumUniquePts)

------------------------------------------------------------------
function Result=CSD(x,y,Fs,window,N,p)

Cross Spectral Density of a Signal (This function do the averaging for the spectral density)

inputs
x : input sequence 1 (1*Ndata)
y : input sequence 2 (1*Ndata)
Fs: sampling frequency
window : window size
N: Number of windows
p: overlap ratio of windows

outputs
Result structure consists of
Result.f : frequency (1*NumUniquePts)
Result.MX : amplitude (1*NumUniquePts)
Result.Arg : Phase Angle (1*NumUniquePts)

Zitieren als

Ayad Al-Rumaithi (2024). FFT, PSD, and CSD (https://www.mathworks.com/matlabcentral/fileexchange/69634-fft-psd-and-csd), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2009b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Fourier Transform finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.2

description

1.0.1

Functions are fixed regarding normalization. Description is added

1.0.0