degrees and radians

Two helper functions, one converts degrees to radians, the other rads to deg.
Updated 18 Aug 2009

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Two simple functions to save time writing out the code to do a degrees to radians calculation or vice versa.

Cite As

Richard Medlock (2024). degrees and radians (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Functions in Help Center and MATLAB Answers

Inspired: deg2rad and rad2deg conversion functions

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Modified calculation based on a user suggestion to improve speed.