how to use matlab code tp plot following

1 回表示 (過去 30 日間)
praveen yadav
praveen yadav 2017 年 9 月 24 日
回答済み: Image Analyst 2017 年 9 月 24 日
(a) plot s(t) and its magnitude frequency spectrum
(b) plot the modified signal x(t)=s(t)*cos(2πfct) in both time and frequency spectrum.
(c) Assuming a perfect coherent demodulation, plot the output (in time and magnitude spectrum) of the demodulator mixer.
(d) Plot the output (in time and magnitude spectrum) of the ideal low pass filters with bandwidth of 1Hz and 5Hz respectively.
(e) Repeat parts(c) and (d) assuming a non-ideal mixer with phase error of 5 degree
(f) Repeat parts(c) and (d) assuming a non-ideal mixer with phase error 0.2Hz
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 9 月 24 日
s(t) = mod(ceil(t), 2) * 2 - 1;

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

回答 (1 件)

Image Analyst
Image Analyst 2017 年 9 月 24 日
Hints:
t = linspace(0, 4, 1000);
x = s .* cos(2 * pi * f * c * t)
Function hints: plot(), linspace(), fft() or pwelch(), abs(), real(), imag(), etc.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by