Path: news.mathworks.com!not-for-mail
From: "Travis" <sinusoid2@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: River miles
Date: Wed, 19 Nov 2008 20:42:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <gg1tmp$elq$1@fred.mathworks.com>
References: <gfst52$caq$1@fred.mathworks.com> <90f017a9-906d-4c7d-8ac5-7167e15e0d8c@u18g2000pro.googlegroups.com> <f36d9204-1e90-4b53-b6f2-6d1b6ecb1f4b@i18g2000prf.googlegroups.com>
Reply-To: "Travis" <sinusoid2@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 1227127321 15034 172.30.248.37 (19 Nov 2008 20:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 19 Nov 2008 20:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1257700
Xref: news.mathworks.com comp.soft-sys.matlab:501839


Rune Allnor <allnor@tele.ntnu.no> wrote in message <f36d9204-1e90-4b53-b6f2-6d1b6ecb1f4b@i18g2000prf.googlegroups.com>...
> On 18 Nov, 16:13, "Travis" <sinuso...@hotmail.com> wrote:
> > Rune Allnor <all...@tele.ntnu.no> wrote in message <6875d2af-8eb2-443a-a8=
> 31-d4c1773c1...@c36g2000prc.googlegroups.com>...
> 
> > =A0Rune the river was mapped using a GPS that recorded time, posiion, and=
>  heading each time the heading changed. =A0It was then interpolated so that=
>  data taken between heading chages have unique lat/long values. =A0Are you =
> suggesting that I break the river up into segments that do not double back =
> on themselves
> 
> Yes. Use the segments between consecutive (lat,long) points
> as basis.
> 
> > and use interp1 on each segment?
> 
> No. Interpolate the whole curve.
> 
> >=A0I have a 60 mile stretch of river to do this for. =A0
> 
> No need to do that manually. The idea is to sort
> the data not according to lat or long, but according
> to travelled/accumulated distance.
> 
> The distance serves as a parameter, and so the
> (lat, long) path becomes an arbitrary parametric
> curve in the plane. Once you see this basic idea
> the rest is (almost) trivial.
> 
> Rune



What coding would I use in this instance?