


H2HMS: converts hours to hours, minutes, and seconds Usage: [hour,min,sec]=h2hms(hours); Rich Signell rsignell@usgs.gov


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 % Rich Signell rsignell@usgs.gov 0007 % 0008 hour=floor(hours); 0009 % 0010 mins=rem(hours,1)*60; 0011 min=floor(mins); 0012 % 0013 secs=round(rem(mins,1)*60); 0014