% DEG2RAD DEG2RAD Convert From Degrees To Radians
% 
% Usage
% 
% Converts the argument from degrees to radians.  The
% syntax for its use is
% 
%    y = deg2rad(x)
% 
% where x is a numeric array.  Conversion is done by
% simply multiplying x by pi/180.


% Copyright (c) 2002-2007 Samit Basu
% Licensed under the GPL

function y = deg2rad(x)
  if (isa(x,'float') || isa(x,'complex'))
    y = x*float(pi/180);
  else
    y = x*pi/180;
  end
  
