Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Spline through non uniformly spaced points
Date: Wed, 7 May 2008 18:13:41 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 25
Message-ID: <fvsrgl$93e$1@canopus.cc.umanitoba.ca>
References: <fvsr0k$n1h$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1210184021 9326 192.70.172.160 (7 May 2008 18:13:41 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Wed, 7 May 2008 18:13:41 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:467219



In article <fvsr0k$n1h$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:
>I want to do something like this:

>a=axes;
>set(a,'xlim',[-2 2]);
>set(a,'ylim',[-2 2]);
>[x y] = ginput;

>%click a bunch of points

>%draw a spline through the points
>xx=-2:.01:2;
>yy=spline(x, y, xx);

>the problem seems to be that the points I have clicked are
>not uniformly spaced (clearly) so i get the following:
>"The data sites should be distinct."

Not having the points uniformly spaced does not cause that problem.
What -would- cause that problem is clicking the same location twice,
such as if you were to close a curve. The message is telling you
that all of the point pairs must be unique.
-- 
  "And that's the way it is."                 -- Walter Cronkite