How to write this function in MATLAB

1 回表示 (過去 30 日間)
Yash Patel
Yash Patel 2021 年 2 月 11 日
回答済み: Drishan Poovaya 2021 年 3 月 24 日
Hello , I am trying to calculate the DTFT of a sequence and compare it using freqz function....
The DTFT of my sequence is
How do I program this in MATLAB ....
w is vectorized quantity
L = 40
  1 件のコメント
darova
darova 2021 年 2 月 11 日
Please provide your attempts

サインインしてコメントする。

回答 (1 件)

Drishan Poovaya
Drishan Poovaya 2021 年 3 月 24 日
I understand you want to write this function in MATLAB with w as a vector. The code below should accomplish this
Pw = L*exp(-1i*w*(L-1)/2).*(sinc(w*L/(2*pi))./sinc(w/(2*pi)));

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by