Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Building a 3D surface by giving coordinates (in a struct)
Date: Fri, 30 Jan 2009 17:05:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <glvc00$f47$1@fred.mathworks.com>
References: <glbpk8$ig7$1@fred.mathworks.com> <glc1l2$ioi$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.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 1233335104 15495 172.30.248.37 (30 Jan 2009 17:05:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 30 Jan 2009 17:05:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:515004


[X,Y] = meshgrid(x,y);
Z = griddata(x,y,z, X, Y);
figure;
surf(X,Y,Z);

Who knows why they don't provide a function to do this...?

Hope that helps!
Dave