Design Stable IIR Filter in MATLAB 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?
After working through some possible solutions, we figured out it would be easier to design argitrary magnitude and group delay separately in MATLAB:

fdesign.arbmag
fdesign.arbgrpdelay