Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Error when finding nearest neighbour on longitude/latitude (irregular
Date: Sat, 3 Mar 2012 07:46:17 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 10
Message-ID: <jisi89$ie2$1@newscl01ah.mathworks.com>
References: <16108795.1311.1330710422622.JavaMail.geo-discussion-forums@vbbed8>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1330760777 18882 172.30.248.48 (3 Mar 2012 07:46:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 3 Mar 2012 07:46:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:759696

Charlie <charliebishop@gmail.com> wrote in message  
> tri = DelaunayTri(nav_lon,nav_lat);
> ??? Error using ==> DelaunayTri
> Invalid data format for DelaunayTri.

tri = DelaunayTri(nav_lon(:),nav_lat(:))

You should read the help of DelaunayTri, your data is (m x n) but scattered so consider it as (m*n x 1).

Bruno