function D=rad2deg(R)

% RAD2DEG Converts angles from radians to degrees
%
%  D=rad2deg(R);
%
%  See also DEG2RAD, DEG2DMS, ANGLEDIM, ANGL2STR



if nargin==0
	error('Incorrect number of arguments')
elseif ~isreal(R)
     warning('Imaginary parts of complex ANGLE argument ignored')
     R = real(R);
end

D=180.*R./pi;
