In this section, the MATLAB code that is used for calculating the arc length s(arc,corner) as indicated in Equation 3.4 is presented.