?? datacom1.m
字號(hào):
%數(shù)據(jù)分析fourier變換例子
clear;N=128;%為提高速度選擇2的冪
t=linspace(0,5,N);
f=6*exp(-2*t);subplot(1,2,1);plot(t,f);hold on;
DF=fft(f);subplot(1,2,2);plot(DF,'ko');hold on;
df=ifft(DF);
subplot(1,2,1);plot(t,real(df),'r.');hold off;
w=linspace(0,2*pi,N);
F=6./(2+i*w)*N/(2*pi);
subplot(1,2,2);
plot(F);hold off;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -