X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=octave_packages%2Fmapping-1.0.7%2Fdeg2rad.m;fp=octave_packages%2Fmapping-1.0.7%2Fdeg2rad.m;h=5bd269a26adff4662654d2f66fcae1660f3b2d87;hb=f5f7a74bd8a4900f0b797da6783be80e11a68d86;hp=0000000000000000000000000000000000000000;hpb=1705066eceaaea976f010f669ce8e972f3734b05;p=CreaPhase.git diff --git a/octave_packages/mapping-1.0.7/deg2rad.m b/octave_packages/mapping-1.0.7/deg2rad.m new file mode 100644 index 0000000..5bd269a --- /dev/null +++ b/octave_packages/mapping-1.0.7/deg2rad.m @@ -0,0 +1,24 @@ +## Copyright (C) 2004 Andrew Collier +## +## This program is free software; it is distributed in the hope that it +## will be useful, but WITHOUT ANY WARRANTY; without even the implied +## warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +## the GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this file; see the file COPYING. If not, see +## . + +## -*- texinfo -*- +## @deftypefn {Function File} {} @var{anglout} = deg2rad(@var{anglin}) +## +## Converts angles input in degrees to the equivalent in radians. +## @end deftypefn + +## Author: Andrew Collier + +function anglout = deg2rad(anglin) + anglout = anglin * pi / 180; +endfunction + +## http://www.mathworks.com/access/helpdesk/help/toolbox/map/functionlist.shtml