Borrar filtros
Borrar filtros

DTFT of unit impulse signal

10 visualizaciones (últimos 30 días)
Issac Kondreddy
Issac Kondreddy el 22 de Nov. de 2020
Respondida: Shubham Rawat el 27 de Nov. de 2020
how to generate dtft of unit impulse signal in matlab?

Respuestas (1)

Shubham Rawat
Shubham Rawat el 27 de Nov. de 2020
Hi Issac,
You can implement the DTFT using the following code snippet,
function [X] = dtft(x,n,w)
% Computes Discrete-time Fourier Transform
% [X] = dtft(x,n,w)
% X = DTFT values computed at w frequencies
% x = finite duration sequence over n
% n = sample position vector
% w = frequency location vector
X = exp(-1i*w'*n) * x.';
% X = x*exp(-j*n'*w);
end
Hope this Helps!

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by