how i can find the DTFT of sequence without using fft inbuilt function ?
56 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
VISHAL G THENGANE
am 1 Mär. 2018
Beantwortet: Piotr Gregor
am 1 Jul. 2022
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
Akzeptierte Antwort
sairaj burewar
am 1 Mär. 2018
w=-pi:0.01:pi;
n=0:50;
x=[1 2 3 4];
for i=1:length(w);
X(i)=0;
for k=1:length(x);
X(i)=X(i)+x(k).*exp(-j.*w(i).*n(k));
end
end
plot(w,X);
title('DTFT');
0 Kommentare
Weitere Antworten (2)
Abhishek Ballaney
am 1 Mär. 2018
Bearbeitet: Abhishek Ballaney
am 1 Mär. 2018
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/
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!