フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

difference in authors solution and matlab solution

1 回表示 (過去 30 日間)
moonman
moonman 2011 年 10 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
This is question of book of signal Processing first by Yoder and Schafer
The author has drawn spectrum which is different than spectrum of matlab. why there is difference. Is author solution wrong
the author solution is here
and matlab code for spectrum is here
Fs = 2000;
t = 0:1/Fs:1-(1/Fs);
x = cos(80*pi*t-pi/3).*(cos(1200*pi*t+pi/4));
xdft = (1/length(x))*fft(x);
freq = -1000:(Fs/length(x)):1000-(Fs/length(x));
plot(freq,abs(fftshift(xdft)));

回答 (1 件)

moonman
moonman 2011 年 10 月 1 日
ok problem resolved
the author was wrong
he did not write
2*pi*f*t

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by