MATLAB: Time-domain frequency filter

filterfilter designFilter Design Toolboxsystem identificationSystem Identification Toolbox

I have a set of time-domain data that I wish to filter. I need to use some sort of notch filter so as no delay occurs as a result of the filtering. I only want to use the data with frequencies between 0 and 3 hz to analyse afterwards. The end result must be in the time-domain – I have tried converting to the frequency domain, selecting the appropriate frequencies and then transferring back into the time-domain, which it does not let me do.
How do I perform this procedure totally in the time-domain?

Best Answer

An example (requires Signal Processing Toolbox)
d = fdesign.lowpass('Fp,Fst,Ap,Ast',3,4,0.5,50,10);
Hd = design(d);
output = filtfilt(Hd.Numerator,1,inputdata);