How do I plot Magnitude And Phase Response of a DT Signal

5 ビュー (過去 30 日間)
Hafizuddin AS
Hafizuddin AS 2015 年 2 月 21 日
回答済み: Rick Rosson 2015 年 2 月 22 日
So I have a DT Sequence of [-2 5 11 4] how do i plot its magnitude and phase response?
t = 1:100;
y = [-2 5 11 4]
subplot(2,1,1)
stem(abs(y)), title('Amplitude plot')
subplot(2,1,2)
stem(angle(y)), title('Phase plot')
Will this work? Just using abs and angle? or is the formula wrong? Do I need to DTFT first?

回答 (1 件)

Rick Rosson
Rick Rosson 2015 年 2 月 22 日

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by