Created
April 28, 2013 14:42
-
-
Save FunPika/5477067 to your computer and use it in GitHub Desktop.
A quick function to convert degrees to radians without having the Mapping Toolbox installed in Matlab.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function radians = degtorad( degrees ) | |
%DEGTORAD Converts degrees to radians. | |
% EXAMPLE:degtorad(35) = 0.6109 | |
radians = degrees*(pi/180); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment