FFT, PSD, and CSD
バージョン 1.0.3 (2.9 KB) 作成者:
Ayad Al-Rumaithi
Fast Fourier Transform, Powder Spectral Density, and Cross Spectral Density
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)
引用
Ayad Al-Rumaithi (2024). FFT, PSD, and CSD (https://www.mathworks.com/matlabcentral/fileexchange/69634-fft-psd-and-csd), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2009b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Fourier Transform についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!