<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168081</link>
    <title>MATLAB Central Newsreader - timestamps</title>
    <description>Feed for thread: timestamps</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 22 Apr 2008 21:59:02 -0400</pubDate>
      <title>timestamps</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168081#428295</link>
      <author>D Bay</author>
      <description>I am new to MATLAB and looking for someone to point me in&lt;br&gt;
the right direction. &lt;br&gt;
&lt;br&gt;
I have a large datafile of water flow gauge data where every&lt;br&gt;
time 25 mL of water falls into a bucket, it causes the&lt;br&gt;
bucket to tip, causing a magnet to pass over a microswitch&lt;br&gt;
which sends a pulse to a datalogger that records the time stamp.&lt;br&gt;
&lt;br&gt;
My data becomes a series of timestamps much like this:  &lt;br&gt;
&lt;br&gt;
2/19/2008 13:59:45&lt;br&gt;
2/19/2008 14:02:03&lt;br&gt;
2/19/2008 14:04:30&lt;br&gt;
2/19/2008 14:06:48&lt;br&gt;
2/19/2008 14:09:21&lt;br&gt;
&lt;br&gt;
To determine the flow rate, I am looking to find the time&lt;br&gt;
difference between tips. Do I need to convert the timestamps&lt;br&gt;
to a number, or is there a MATLAB script that can work&lt;br&gt;
directly with timestamps? &lt;br&gt;
&lt;br&gt;
In addition, in some cases we have missing tips. If the time&lt;br&gt;
between tips is 60s, 60s, 60s, 120s, 60s, 180s, etc etc, I&lt;br&gt;
know that the flow rate is (25mL/60s) on average. However,&lt;br&gt;
when there is a 120 or 180, I know that these numbers&lt;br&gt;
signify one or two missed tips (60x2, 60x3). I would like to&lt;br&gt;
know if there are any functions that will help me to&lt;br&gt;
manipulate the data so that 120 will be divided into 60 and&lt;br&gt;
60, with an interpolated timestamp for the new 60s interval. &lt;br&gt;
&lt;br&gt;
Any help, directions, ideas etc would be greatly appreciated. &lt;br&gt;
&lt;br&gt;
Cheers&lt;br&gt;
&lt;br&gt;
Danny &lt;br&gt;
dbay@eos.ubc.ca  </description>
    </item>
    <item>
      <pubDate>Tue, 22 Apr 2008 22:20:03 -0400</pubDate>
      <title>Re: timestamps</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168081#428298</link>
      <author>Dan Haeg</author>
      <description>&quot;D Bay&quot; &amp;lt;dbay@eos.ubc.ca&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fuln36$3f6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; My data becomes a series of timestamps much like this:  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2/19/2008 13:59:45&lt;br&gt;
&amp;gt; 2/19/2008 14:02:03&lt;br&gt;
&amp;gt; 2/19/2008 14:04:30&lt;br&gt;
&amp;gt; 2/19/2008 14:06:48&lt;br&gt;
&amp;gt; 2/19/2008 14:09:21&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; To determine the flow rate, I am looking to find the time&lt;br&gt;
&amp;gt; difference between tips. Do I need to convert the timestamps&lt;br&gt;
&amp;gt; to a number, or is there a MATLAB script that can work&lt;br&gt;
&amp;gt; directly with timestamps? &lt;br&gt;
&lt;br&gt;
s=['2/19/2008 13:59:45';&lt;br&gt;
'2/19/2008 14:02:03';&lt;br&gt;
'2/19/2008 14:04:30';&lt;br&gt;
'2/19/2008 14:06:48';&lt;br&gt;
'2/19/2008 14:09:21']&lt;br&gt;
&lt;br&gt;
V = datevec(s, 0)&lt;br&gt;
dt=etime(V(2,:),V(1,:))</description>
    </item>
  </channel>
</rss>

