in Matlab the parameter "DecimationFactor" in the System Object dsp.DigitalDownConverter can be configured: **broken link removed**
I found something interesting about this parameter:
DecimationFactor small => an warning occurs: The filter design has not converged. Try increasing the passband ripple value, or decreasing the stopband attenuation.