]> Creatis software - CreaPhase.git/blob - octave_packages/mapping-1.0.7/rad2deg.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / mapping-1.0.7 / rad2deg.m
1 ## Copyright (C) 2004 Andrew Collier <abcollier@users.sourceforge.net>
2 ##
3 ## This program is free software; it is distributed in the hope that it
4 ## will be useful, but WITHOUT ANY WARRANTY; without even the implied
5 ## warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
6 ## the GNU General Public License for more details.
7 ##
8 ## You should have received a copy of the GNU General Public License
9 ## along with this file; see the file COPYING.  If not, see
10 ## <http://www.gnu.org/licenses/>.
11
12 ## -*- texinfo -*-
13 ## @deftypefn {Function File} {} @var{anglout} = rad2deg(@var{anglin})
14 ##
15 ## Converts angles input in radians to the equivalent in degrees.
16 ## @end deftypefn
17
18 ## Author: Andrew Collier <abcollier@users.sourceforge.net>
19
20 function anglout = rad2deg(anglin)
21   anglout = anglin * 180 / pi;
22 endfunction
23
24 ## http://www.mathworks.com/access/helpdesk/help/toolbox/map/functionlist.shtml