📄 lpf.m
字号:
function [t, st]=lpf(f,sf,B)
%This function filter an input data using a lowpass filter
% Inputs : f--frequency samples
% sf--input data spectrum samples
% B--lowpass's bandwidth with a rectangle lowpass
% Outputs: t--time samples
% st--output data's time samples
df= f(2)-f(1);
T=1/df;
hf=zeros(1,length(f));
bf=[-floor(B/df):floor(B/df)]+floor(length(f)/2);
hf(bf)=1;
yf=hf.*sf;
[t,st]= F2T(f,yf);
st=real(st);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -