Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: determining the equation of a 3-D surface
Date: Fri, 21 Nov 2008 19:44:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gg7322$p7o$1@fred.mathworks.com>
References: <gg6ovh$4db$1@fred.mathworks.com> <gg6s8i$4mr$1@fred.mathworks.com> <gg71op$4c1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1227296642 25848 172.30.248.37 (21 Nov 2008 19:44:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Nov 2008 19:44:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1611585
Xref: news.mathworks.com comp.soft-sys.matlab:502394


"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gg71op$4c1$1@fred.mathworks.com>...
> "loic paccard" <loic.paccard@ecam.fr> wrote in message <gg6s8i$4mr$1@fred.mathworks.com>...
> 
> > 
> > I have tried to use spline functions but it only can work with a row x  or a column y of my matrix for the values of elements and I need a global equation for a fmincon minimization.
> 
> You might try to use interp2 with 'spline' method.
> 
> Bruno

Thanks for your help Bruno.

I don't really think that interp2 is useful in my case.
interp2 can provide efficiently discrete values in different x and y positions than where my data has been taken.
This is helpful for getting discrete values but it can not give the analytical equation of my surface.
Maybe I am wrong, in this case tell me how to use interp2 in order to get this analytical equation z= f(x,y).