Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Non-polynomial Curve Fit problem
Date: Thu, 16 Apr 2009 20:37:01 +0000 (UTC)
Organization: University of Michigan
Lines: 12
Message-ID: <gs84td$t4c$1@fred.mathworks.com>
References: <gs7tqh$3oc$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 1239914221 29836 172.30.248.38 (16 Apr 2009 20:37:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Apr 2009 20:37:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1246458
Xref: news.mathworks.com comp.soft-sys.matlab:533327


I just find 'cscvn' may help to this problem. //"Natural" or periodic interpolating cubic spline curve. Though it is not the curve fit.

x=[-28.87 -27.35 -18.67 -22.42 -34.53 -52.73 -60.72 -68.06 -87.41 -94.16]';
y=[-11.56 -5.57 3.26 7.15 7.69 5.82 7.99 10.45 2.70 0]';
plot(x,y,'ro-');
grid;
axis equal;

figure;
p=[x' ; y'];
fnplt(cscvn(p)); 
grid;