DTFT of unit impulse signal

4 ビュー (過去 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 Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by