필터 지우기
필터 지우기

How do I write a code for Fast Fourier Transform

조회 수: 3 (최근 30일)
Issara Laosuwan
Issara Laosuwan 2016년 5월 31일
답변: Todd Leonhardt 2016년 5월 31일
Hello! I try to replicate and understand Dr.Rich Radke's code about Fast Fourier Transform from https://www.youtube.com/watch?v=NbQY1x8H6QQ at 15:02 min.
function im = bf(m,n)
N = 256; [x,y] = meshgrid(0:(N-1),0:(N-1)); im = real(exp(-j*2*pi*(m*x/n+n*y/N))); if (m == 0) && (n == 0) im = round(im); end
Seem like some of the essential codes are missing because when I computed, it return with an error:
>> bf Not enough input arguments.
Error in bf (line 4) im = real(exp(-j*2*pi*(m*x/n+n*y/N)));
Please kindly recommend me!!! Thank you in advance!!!
Issara

채택된 답변

Todd Leonhardt
Todd Leonhardt 2016년 5월 31일
See this good documentation on how to use the built-in fft() function:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by