필터 지우기
필터 지우기

Help required fir recursive computation fft in matlab

조회 수: 3 (최근 30일)
Fareena
Fareena 2014년 10월 29일
댓글: MEGHNA LUDRA 17BEC0692 2019년 10월 13일
Hi I am new to matlab... I was reading this book: Applied DSP by manolakis,and get stuck with the following code.. I am using matlab version 2014 and the statement W = exp(-2*pi*sqrt(-1)/N).ˆ(0:m-1)’; in the following code is giving error
The function from the book is as follows for reference:
function Xdft = fftrecur(x)
% Recursive computation of the DFT using divide & conquer
% N should be a power of 2
N = length(x);
if N ==1
Xdft = x;
else
m = N/2;
XE = fftrecur(x(1:2:N));
XO = fftrecur(x(2:2:N));
W = exp(-2*pi*sqrt(-1)/N).ˆ(0:m-1)’;
temp = W.*XO;
Xdft = [ XE+temp ; XO-temp ];
end
  댓글 수: 3
Daniel M
Daniel M 2019년 10월 12일
What is your error?
MEGHNA LUDRA 17BEC0692
MEGHNA LUDRA 17BEC0692 2019년 10월 13일
i don't know MATLAB very well but i need this code for a project tomorrow
can you help me out?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by