FFT, PSD, and CSD
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
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.2 | description |
||
1.0.1 | Functions are fixed regarding normalization. Description is added |
||
1.0.0 |