How do i write a user defined function for problem 6.4 in the textbook?

1 view (last 30 days)
I don't know how to start the function to convert degrees to dms

Answers (1)

Arnab Sen
Arnab Sen on 23 Feb 2016
Although I don't know the exact question, you can use in-built 'degrees2dms' function to convert degrees to dms using following command:
>>DMS = degrees2dms(angleInDegrees)
For more details about 'degrees2dms', refer to the following link:


Find more on Language Fundamentals in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!