Matlab stepinfo. Check your answer for part c by MATLAB stepinfo command