fft_plot function

Plot signal FFT norm and phase versus frequency and signal versus time. Customizable display, also return FFT data.
다운로드 수: 722
업데이트 날짜: 2020/8/10

라이선스 보기

Function can also return fft results.

optionnal input argument:
- 'legend': 'signal name'
- 'title': 'your title'
- 'window': 'none', 'hann', 'hamming', 'flattop', 'blackman', 'blackmanharris'
- 'subplot': 'fft', 'fft_signal', 'fft_angle', 'all', 'none'
- 'MinNorm': if norm is lower than this value, angle is forced to 0.
(angle makes no sense for small norm)
- 'H1': replace frequency axis with harmonic number (divide frequency axis by H1)
- 'fmin': display frequency fmin to fs/2 (if H1 != 1 then fmin = Harmonic min)
- 'fmax': display frequency 0 to fmax (if H1 != 1 then fmax = Harmonic max)
- 'Amax': display amplitude 0 to Amax
- 'style': 'line', 'stem', 'bar', 'stairs', 'area', (fft norm only)
- 'scale': 'linear', 'semilogx', 'semilogy', 'loglog'
- 'linewidth': number (defaut is 0.5)

인용 양식

pierre-alexandre chauvenet (2024). fft_plot function (https://www.mathworks.com/matlabcentral/fileexchange/72124-fft_plot-function), MATLAB Central File Exchange. 검색됨 .

https://stackoverflow.com/questions/33962554/finding-the-phase-of-each-harmonics-using-fft

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

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.4

add option to replace frequency axis with harmonic number

1.0.3

additional display options

1.0.2

- take both line or column signal input

1.0.1

return fft data (norm, angle, frequency)
plot angle becomes optionnal

1.0.0