|
From: | Ed Meyer |
Subject: | Re: Should interp1.m function allow jumps in X-values? |
Date: | Tue, 21 Aug 2012 08:55:23 -0700 |
On Tue, Aug 21, 2012 at 4:51 PM, Martin Helm <address@hidden> wrote:
You are right. Then I fail to understand the problem posed.> Am 21.08.2012 16:35, schrieb Juan Pablo Carbajal:
>> interp1 calculates an interpolant, so it should either ignore the
>> repeated values or give an error.
> It is explicitly mentioned in the help that:
> Duplicate points in X specify a discontinuous interpolant.
>
> So it should not give a warning when used as it is explicitly intended
> to be used.
If X is sorted then the two interpolants (the right and the left one)
are well defined.
--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/
[Prev in Thread] | Current Thread | [Next in Thread] |