help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distance between lines


From: Jaroslav Hajek
Subject: Re: Distance between lines
Date: Tue, 23 Mar 2010 07:48:32 +0100

On Mon, Mar 22, 2010 at 11:16 PM, Janmaat, John <address@hidden> wrote:
> Hello,
>
> I'm looking to compare solutions generated by a differential equation
> solver.  In particular, I want to know how far apart they are.  As the
> output of the solvers is a sequence of points, I am thinking of somehow
> measuring the distance between these sequences of points.  Is there an
> octave function or package that can easily do this?
>
> Thanks,
>
> John.
>
>

I don't think so, but you can easily write one. Just use interp1 to
interpolate both sequences onto a common time sequence, then subtract
them and take any norm you like of the resulting sequence.



-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]