Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: 2d data interpolation
Date: Thu, 29 Nov 2012 15:21:09 +0000 (UTC)
Organization: University of Bern
Lines: 8
Message-ID: <k97uh5$9t7$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1354202469 10151 172.30.248.38 (29 Nov 2012 15:21:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Nov 2012 15:21:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3720449
Xref: news.mathworks.com comp.soft-sys.matlab:783803

Hi
I have a problem with the function interp2: I have a matrx 100x3 where the first column is the x-coordinate, the second column is the y-coordinate and the third column is the value at the coordinates x and y.
I would like to interpolate those values with a grid 600x600 but the x and y coordinates are not monotonic vectors and interp2 gives me an error.

Can anyone help me?

Many thanks
Giuseppe