min and max step lengths in MATLAB
minimum step length, update replace_subfunction