COMPUTE SMOOTH FOURIER AMPLITUDE SPECTRUM (smoothFAS)

버전 1.0.5 (99.3 KB) 작성자: Dr. Erol Kalkan, P.E.
This function computes Fourier amplitude spectrum and its smoothed version. For smoothing, it uses window averaging.
다운로드 수: 334
업데이트 날짜: 2019/2/9

라이선스 보기

COMPUTE SMOOTH FOURIER AMPLITUDE SPECTRUM

This function computes Fourier amplitude spectrum and its smoothed version. For smoothing, it uses window averaging based on median or rms value of the window. Default number of windows is 20. The code also accepts a user-defined value for number of windows. Windows have equal number of data points.

USAGE:

[fas] = smoothFFT(w,dt);

or with rms method and a custom number of windows parameter for smoothing

[fas] = smoothFFT(w,dt,'n_windows',25,'method',rms);

STATIC INPUT:

w = vector of time series data (1xn or nx1)
dt = sampling interval (e.g., 0.01 second for 100 samples-per-second data)
n_windows = number of windows for averaging (each window contains same number of data points)
method = averaging method (median, rms) (e.g., 'method','rms').

VALID PROP_NAME / PROP_VAL PAIRS:
---------------------------------------------------------
'n_windows' --> (1x1)-[numeric]-[default:20]
'method' --> [text]-[default: 'median']

OUTPUT:
fas = structure output array
fas.freq = frequency vector
fm = Fourier amplitudes
fas.smooth = smoothed Fourier amplitudes

EXAMPLE: See demo.m

ACKNOWLEDGEMENTS:

I benefitted from smooth.m function of MatLAB for median and rms averaging. The original code is available at https://github.com/ashao/matlab/blob/master/external/smooth.m

If you find this code useful for your application, please don't forget to rate it.

For questions / suggestions / comments and bug reports: kalkan76@gmail.com

See also smoothSpectra (https://www.mathworks.com/matlabcentral/fileexchange/70217-smoothing-function-for-fourier-amplitude-spectrum?s_tid=prof_contriblnk)

인용 양식

Dr. Erol Kalkan, P.E. (2024). COMPUTE SMOOTH FOURIER AMPLITUDE SPECTRUM (smoothFAS) (https://www.mathworks.com/matlabcentral/fileexchange/70166-compute-smooth-fourier-amplitude-spectrum-smoothfas), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Geology에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

smoothFAS

버전 게시됨 릴리스 정보
1.0.5

Updated notes

1.0.4

Updated notes

1.0.3

Updated notes

1.0.2

Updated files

1.0.1