Path: news.mathworks.com!not-for-mail
From: "jason " <razor_222@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: subtracting time difference
Date: Sat, 11 Aug 2007 05:23:10 +0000 (UTC)
Organization: Victoria University of Wellington
Lines: 22
Message-ID: <f9jh3u$dnm$1@fred.mathworks.com>
Reply-To: "jason " <razor_222@hotmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186809790 14070 172.30.248.37 (11 Aug 2007 05:23:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 11 Aug 2007 05:23:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 492997
Xref: news.mathworks.com comp.soft-sys.matlab:423477


hi 

i have some data that i am recording the time that it enters
the serial port. it is currently been written to a file, but
i would also like to find the difference in time between the
sequences of data.

the data is stored in the file like this:

4f   09.22.569
63   09.22.588
67   09.22.613   

with the first part being hex data and the second part is
the time stamp using datestr(now('MM.SS.FFF'));

how do i set it up so that it finds the difference in time
between 09.22.588 and 09.22.613? it cant be changed using
datenum because datenum doesnt recognise SS.FFF.

thanks in advance
jase