[go: up one dir, main page]

Menu

[57f2a1]: / init / box_filt.m  Maximize  Restore  History

Download this file

19 lines (18 with data), 475 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
% box_filt.m: Interpolates the boxcar filter impulse response function
% GUISDAP v.8.9 16-09-27
%
% input parameters:
% width : box lengths in us
% p_dtau : global time unit in us (global parameter)
% output parameters:
% impresp: the impulse response scaled to get unit area
%
% See also: but_filt, REC_impresp
%
% function impresp=box_filt(width);
function impresp=box_filt(width);
global p_dtau
wp=round(width/p_dtau);
for i=1:length(wp)
impresp(:,i)=ones(wp,1)/wp;
end