Home > timeplt > h2hms.m

h2hms

PURPOSE ^

H2HMS converts hours to hours, minutes, and seconds

SYNOPSIS ^

function [hour,min,secs]=h2hms(hours);

DESCRIPTION ^

H2HMS converts hours to hours, minutes, and seconds

  Usage:  [hour,min,sec]=h2hms(hours);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [hour,min,secs]=h2hms(hours);
0002 %H2HMS converts hours to hours, minutes, and seconds
0003 %
0004 %  Usage:  [hour,min,sec]=h2hms(hours);
0005 %
0006 hour=floor(hours);
0007 %
0008 mins=rem(hours,1)*60;
0009 min=floor(mins);
0010 %
0011 secs=round(rem(mins,1)*60);
0012

Generated on Wed 30-Nov-2005 15:41:21 by m2html © 2003