%% rad2deg takes a matrix whose elements give
%% radians and converts each of the elements to
%% degrees

function op=rad2deg(ip)

% ip = input matrix
% op = output matrix

op=(180/pi)*ip;                      %convert input rads values to output degrees
