Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: time merger
Date: Mon, 28 Jul 2008 16:30:21 +0000 (UTC)
Organization: Pierburg GmbH
Lines: 20
Message-ID: <g6ks6t$lm6$1@fred.mathworks.com>
References: <g6kr8a$b7c$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1217262621 22214 172.30.248.38 (28 Jul 2008 16:30:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 28 Jul 2008 16:30:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872224
Xref: news.mathworks.com comp.soft-sys.matlab:482254



"Mark Weidman" <wademan947@aol.com> wrote in message
<g6kr8a$b7c$1@fred.mathworks.com>...
> Hi
> I'm trying to merge two sources of data.  I have values for
> pH vs. time and also potential vs. time.  I want to merge
> these two so I can get pH vs. potential.  The times are not
> exactly the same so I tried to write an m-file that would
> match up the times as close as possible and give me an array
> of pH and potential.  It's not working so far.  Any help is
> greatly appreciated. 
> 
> 
> Thanks :)

Probably you want to interpolate one of the signals at the
time data of the other one. Check out 
doc interp1
so you'll get, say, the pH vs. the interpolated potential.
Hth
Andres