how i can find the DTFT of sequence without using fft inbuilt function ?
이전 댓글 표시
i am trying this code,
clc; clear; close all;
n = 0:1:100;
x = ((n >= 0) - (n >= 5));
stem(n, x);
len = length(x);
X = zeros(1, len);
for w = 0:2*pi*len
for n = 0:len
X(w+1) = X(w+1) + x(w+1)*exp(-1j*w*n);
end
end
채택된 답변
추가 답변 (2개)
Abhishek Ballaney
2018년 3월 1일
편집: Abhishek Ballaney
2018년 3월 1일
0 개 추천
https://blogs.mathworks.com/steve/2010/06/25/plotting-the-dtft-using-the-output-of-fft/
https://blogs.mathworks.com/steve/2010/03/15/the-dft-and-the-dtft/
Piotr Gregor
2022년 7월 1일
0 개 추천
Here's my implementation of DFT and IDFT:
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!