apply_inverse_filter.m
SYNTAX: [data_out,figure_num]=
apply_inverse_filter(data_in,time_in,B,A,cutoff,figure_num)
PURPOSE: Inverse filter data which has been filtered by a filter=B/A.
The filter spectrum is inverted and multiplied
by the data spectrum up to the cutoff frequency. Spectra above the
corner frequency are set to 0.
INPUTS:
data_in = filtered data (must be uniformly sampled)
time_in = time vector corresponding to data_in
B,A = numerator and denominator of Laplace function description of filter
cutoff = cutoff of inversion
figure_num = turns on plotting of intermediate results if specified, plots
beginning at figure(figure_num+1). (optional)
OUTPUTS:
data_out = data after inverse filtering
Dependencies