% Purpose % converts YYMMDDhhmmss.fff time representation to an array of % time reference to a given basetime. % % Synopsis % time_array = mexeps('totarray',time,units) % time_array = mexeps('totarray',time,units,basetime) % % Description % It returns time into an array reference to a given basetime. % The input argument, time, is an array in the form of % YYMMDDhhmmss.fff. The input units indicates the output time % array units reference to the basetime. The default basetime % is the first element oif the input time. The basetime must % be specified in the form of YYMMDDhhmmss.fff if it is given. % % Examples % Convert input time to a time with units of 'hours'. % % in_time = [941005000000; 941005010000; 941005020000]; % out_time = mexeps('totarray',in_time,'hours'); % % % out_time will be [0; 1; 2] % % See Also % totstr %