Code covered by the BSD License  

Highlights from
Geodetic Toolbox

Geodetic Toolbox

by

 

13 Jun 2007 (Updated )

Toolbox for angle, coordinate and date conversions and transformations. Version 2.97.

deg=rad2deg(rad)
function deg=rad2deg(rad)
% RAD2DEG  Converts radians to decimal degrees. Vectorized.
% Version: 8 Mar 00
% Useage:  deg=rad2deg(rad)
% Input:   rad - vector of angles in radians
% Output:  deg - vector of angles in decimal degrees

% Copyright (c) 2011, Michael R. Craymer
% All rights reserved.
% Email: mike@craymer.com

deg=rad.*180./pi;
%ind=(deg<0);
%deg(ind)=deg(ind)+360;

Contact us