function t=str2time(cur_time) hh=str2double(cur_time(1:2)); mm=str2double(cur_time(4:5)); t=60*hh+mm; end