DTFT of unit impulse signal

조회 수: 6 (최근 30일)
Issac Kondreddy
Issac Kondreddy 2020년 11월 22일
답변: Shubham Rawat 2020년 11월 27일
how to generate dtft of unit impulse signal in matlab?

답변 (1개)

Shubham Rawat
Shubham Rawat 2020년 11월 27일
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!

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by