Helper function deg2rad is needed

In order to avoid MATLAB from throwing an "undefined function 'deg2rad'
for input arguments of type 'double'" error, the deg2rad helper function
is required.