Example: Converting Radians to Deg-Min-Sec
Use the DMS function for converting radian angles to degrees-minutes-seconds and vice versa.
1. Call the DMS function to convert a vector of degrees-minutes-seconds values into radians.
2. Evaluate variable R.
3. Convert the above result back to DMS by inserting the DMS unit in the placeholder.
4. Define a function to convert a row vector of DMS values to radians.
5. Use the function to convert DMS to radians.
6. Use the floor function to define a function that converts radians to a row vector of DMS values.
7. Use the above function to convert radians to DMS.