I need to design a stable IIR filter in MATLAB. Specifically, I am trying to use a butterworth filter to correct the phase and gain of a 2 pole RC filter:
d = fdesign.arbmagnphase('n,f,h', n, f, h); myFilter = design(d,'iir','butter');
The butterworth part is not really important, there are several options to choose from. Is it possible to constrain MATLAB to produce an IIR filter that is stable?