Determine the frequency response

2 ビュー (過去 30 日間)
Marina Petani
Marina Petani 2022 年 6 月 5 日
コメント済み: Paul 2022 年 6 月 5 日
Its given:
ℎ(n)={(0.95)^n cos(2𝜋0.066n) + (0.75)^n cos(2𝜋0.172n) + (0.6)^n cos(2𝜋0.241n)} 𝑢(n)
Find: |H(e^jw)| if w = 0, w = pi/2, w = pi.
Draw the graph of |H(e^jw)| if 0 < w < pi
Also find the phase spectrum.
  5 件のコメント
Marina Petani
Marina Petani 2022 年 6 月 5 日
function [H] = dtft(h,n,w)
H=h*exp(-j*n'*w);
end
Paul
Paul 2022 年 6 月 5 日
The DTFT is a sum over n, so you'll either
a) use the sum function combined with element wise multiplication times, .*
or
b) use a loop over n to sum up h(n)*exp(-1j*n*w)

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by