フィルターのクリア

i dont know why the second figure is empty

3 ビュー (過去 30 日間)
abed
abed 2013 年 11 月 30 日
コメント済み: abed 2013 年 11 月 30 日
fs=20;
Ts=1/fs;
N=1024
Tmax=(N-1)*Ts;
t=-10:Ts:10;
ut=exp(-(t/10).^2);
plot(t,ut.^2)
f=-5:fs:5;
z=fftshift(fft(ut));
plot(f,abs(z))

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 30 日
編集済み: Azzi Abdelmalek 2013 年 11 月 30 日
Figure 1 was erased by figure 2
fs=20;
Ts=1/fs;
N=1024
Tmax=(N-1)*Ts;
t=-10:Ts:10;
ut=exp(-(t/10).^2);
%-----figure 1--------------
plot(t,ut.^2)
% -----figure 2------------
figure
z=fftshift(fft(ut));
plot(abs(z))
Check this
f=-5:fs:5
  1 件のコメント
abed
abed 2013 年 11 月 30 日
very nice i need to ask 2 things: the axis of the second figure how did it work out for you without introducing fs? second if i want to show the propagation of this signal in 3d length frequency and intensity what should i do any thoughts??

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

カテゴリ

Help Center および File ExchangeGraphics Object Identification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by