% 时间点设置,起止时间(时间点,如7点15分35秒→071535000。注意:起始时间为早六点 060000000),精确到毫秒 t1_sfm='060000000'; t2_sfm='060000005'; % 时间对应关系换算 t1 = getTime(t1_sfm) t2 = getTime(t2_sfm)
function t = getTime(t_sf) % 时间换算子程序 hour = str2double(t_sf(1:2)); minute = str2double(t_sf(3:4)); millisecond = str2double(t_sf(5:end)); t = 1+ceil((hour * 60 * 60 * 1000 + minute * 60 * 1000 + millisecond-6*60*60*1000)/10); end
标签:getTime,60,换算,时间,Matlab,str2double,sf,sfm From: https://www.cnblogs.com/Nigel-ff/p/17534646.html