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

function op=deg2rad(ip)

% ip = input matrix
% op = output matrix

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