For accurate results, use frequency points returned by freqspace to create Hd . The frequency vectors f1 and f2 are in normalized frequency, where 1.0 corresponds to half the sampling frequency, or radians. The resulting filter fits the desired response as closely as possible in the least squares sense. Hd can be of class double or of any integer class. All other inputs to fsamp2 must be of class double .
All outputs are of class double .
Use freqspace to create the frequency range vectors f1 and f2 . Design the filter that passes through this response. Algorithm fsamp2 computes the filter h by taking the inverse discrete Fourier transform of the desired frequency response. Two-Dimensional Signal and Image Processing .