|
I am new to MATLAB and looking for someone to point me in
the right direction.
I have a large datafile of water flow gauge data where every
time 25 mL of water falls into a bucket, it causes the
bucket to tip, causing a magnet to pass over a microswitch
which sends a pulse to a datalogger that records the time stamp.
My data becomes a series of timestamps much like this:
2/19/2008 13:59:45
2/19/2008 14:02:03
2/19/2008 14:04:30
2/19/2008 14:06:48
2/19/2008 14:09:21
To determine the flow rate, I am looking to find the time
difference between tips. Do I need to convert the timestamps
to a number, or is there a MATLAB script that can work
directly with timestamps?
In addition, in some cases we have missing tips. If the time
between tips is 60s, 60s, 60s, 120s, 60s, 180s, etc etc, I
know that the flow rate is (25mL/60s) on average. However,
when there is a 120 or 180, I know that these numbers
signify one or two missed tips (60x2, 60x3). I would like to
know if there are any functions that will help me to
manipulate the data so that 120 will be divided into 60 and
60, with an interpolated timestamp for the new 60s interval.
Any help, directions, ideas etc would be greatly appreciated.
Cheers
Danny
dbay@eos.ubc.ca
|