Code covered by the BSD License  

Highlights from
geom2d

image thumbnail

geom2d

by

 

13 Jun 2005 (Updated )

Geometry library for matlab. Performs geometric computations on points, lines, circles, polygons...

rad2deg(rad)
function deg = rad2deg(rad)
%RAD2DEG Convert angle from radians to degrees
%
%   Usage:
%   R = rad2deg(D)
%   convert an angle in radians to angle in degrees
%
%   Example:
%   rad2deg(pi)
%   ans =
%       180
%   rad2deg(pi/3)
%   ans =
%       60
%
%   See Also
%   angles2d, deg2rad
%
%   ---------
%   author : David Legland 
%   INRA - TPV URPOI - BIA IMASTE
%   created the 09/12/2004.
%

deg = rad*180/pi;

Contact us