?? db.m
字號:
%this funcion is to make FFT Discrete Fourier transform When N=1024
%then change into db form scale to the maxium point
%fs is the sampling frequency
%y is the input vector
%x is the cutpoint of fs
%dy is the spectrum of y in db form scale to the maxium point
function [x,dy]=db(fs,y)
N=1024;
Fy=fft(y,N);
Dy=20*log10(abs(Fy));
dy=Dy-max(Dy);
x=[0:fs/N:fs];
x=x(1:N)*1e-6;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -