Implementation method of object step response curve in MATLAB