ı would like to use a high-pass filter with a cut-off frequency of 0.02 Hz in a time domain.
is that possible to filter frequencies in time domain?
thanks
Best Answer
If you have R2018a or later use the highpass (link) funciton. It returns an efficient elliptical filter. If you use the ‘d’ (digital filter object) output, use filtfilt with it to filter your signal, not filter as suggested in the documentation.
Your error message does not appear to match your code.
Did you name your file "all.m" ? If so then that would interfere with the internal use of the MATLAB function named "all"
The documentation forbutter indicates that the first output argument (your highPassFilter) will be a column vector of the length indicated by your first input argument (here N, value 2). It is not the filter itself, and it is not a function: it is part of the coefficients needed to construct a filter. Accessing it at (512,512) is never going to work because it will be a column vector.
Best Answer