HMS2Rad:

Path: Common/Transform

% Convert hours, minutes and seconds to radians. 

--------------------------------------------------------------------------
   Form:
   a = HMS2Rad( h, m, s )
   a = HMS2Rad( [h;m;s] )
   a = HMS2RAD( h );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   h             (1,:) Hours or string
   m             (1,:) Minutes
   s             (1,:) Seconds

   or

   h             (3,:) [Hours; Minutes; Seconds]

   -------
   Outputs
   -------
   a             (1,:)   Angle in radians

--------------------------------------------------------------------------

Back to the Common Module page