?? t2f.m
字號(hào):
function[f,sf]=T2F(t,st) %計(jì)算信號(hào)的傅里葉變換
% this is a function using the FFT function to calculation a single's
%Fourier translation
%input is the time and the signal vectors,the length of the time must
%greater than 2;Output is the frequency and the signal spectrum
dt=t(2)-t(1);
T=t(end);
df=1/T;
N=length(st);
f=-N/2*df:df:N/2*df-df;
sf=fft(st);
sf=T/N*fftshift(sf);
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -