findFFT

버전 1.0.0.0 (317 KB) 작성자: Bryant Svedin
findFFT returns fft amplitude and frequency vectors from input data
다운로드 수: 2.8K
업데이트 날짜: 2010/5/12

라이선스 보기

findFFT returns fft amplitude and frequency vectors from input data, with options to return normal fft, zeropadded fft, windowed fft, or both windowed and zeropadded to remove spectral leakage.

IN
data - vector containing information to perform fft on
'-sampFreq',## - inputs sampling frequency of ##, if ## is not supplied default is 1
'-zeropad',## - option to zeropad data to ## times original size, if ## is not supplied default is 10
'-window' - Option to apply a windowing function to data
'windowtype' - string containing which windowing function to apply to data, must follow option '-window', if not supplied default is 'hann'
OUT
amp - vector containing amplitude values (y-axis)
freq - vector containing frequency values (x-axis)

Examples:
[amp freq] = findFFT(data)
[amp freq] = findFFT(data,'-sampFreq',10)
[amp freq] = findFFT(data,'-zeropad',5)
[amp freq] = findFFT(data,'-window','hamming')
[amp freq] = findFFT(data,'-sampFreq',10,'-zeropad',5,'-window','blackman')

Use plotFFTdifs.m script to see examples of how this function works and what all the different outputs look like.

References
For an excellent introduction to FFTs, zeropadding, and windowing
<http://blinkdagger.com/category/control-systems/>

For an excellent article on windowing
<http://www.ee.iitm.ac.in/~nitin/_media/ee462/fftwindows.pdf?id=jan07%3Aee462%3Arefs&cache=cache>

Written by:
Bryant Svedin
10 May, 2010

인용 양식

Bryant Svedin (2025). findFFT (https://kr.mathworks.com/matlabcentral/fileexchange/27595-findfft), MATLAB Central File Exchange. 검색 날짜: .

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

Community Treasure Hunt

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

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