Path: news.mathworks.com!not-for-mail
From: "Rajesh Acharya" <rv_acharya@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Fit quadratic polynomial and find minimum value and its site??
Date: Mon, 19 May 2008 03:55:03 +0000 (UTC)
Organization: pune
Lines: 24
Message-ID: <g0qtmn$137$1@fred.mathworks.com>
References: <g0gvl6$l97$1@fred.mathworks.com> <g0hr7r$4u8$1@fred.mathworks.com> <g0j516$dnh$1@fred.mathworks.com> <g0jki1$d8i$1@fred.mathworks.com>
Reply-To: "Rajesh Acharya" <rv_acharya@yahoo.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 1211169303 1127 172.30.248.37 (19 May 2008 03:55:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 19 May 2008 03:55:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1341120
Xref: news.mathworks.com comp.soft-sys.matlab:469145


Gud morning John....
thanks for the first two functions.... as you say it is a 
trivial thing but i guess that ignorance makes it a 
serious problem and thats why i looked for help.... I feel 
the matlab help search needs to be more powerful and more 
interactive ..yeah.. well every novice will feel 
that..right!!  :)

i tried the spline fit problem in several ways according 
to the info in help and it worked ultimately....painful!

I had given what i tried earlier in my original 
post..since the curve fitting was just a small part of the 
whole program thats why i dint mail the whole .m file...

fun=spline(X,[0 Y 0]);
minval minsite = fnmin(fun,X) ...this is what i was trying
for which i got starnge results...
then 
fun=spline(X,Y);
minval minsite=fnmin(fun,X); ..this worked... how?..dont 
know..whats the diff except [ 0 Y 0 ] nemind thanks for 
your time.