Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Optimize this matrix process (alternative to sub2ind)
Date: Mon, 18 Oct 2010 12:43:04 +0000 (UTC)
Organization: Uppsala University
Lines: 10
Message-ID: <i9hfco$79a$1@fred.mathworks.com>
References: <i9cjuf$7qf$1@fred.mathworks.com> <i9cqi7$6uu$1@fred.mathworks.com> <i9crjv$dup$1@fred.mathworks.com> <i9hds0$roh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1287405784 7466 172.30.248.38 (18 Oct 2010 12:43:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 Oct 2010 12:43:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 210779
Xref: news.mathworks.com comp.soft-sys.matlab:679302

"Louis " <wlouis@ryerson.ca> wrote in message <i9hds0$roh$1@fred.mathworks.com>...
> Thank you very much Roger and Matt...
> 
> Matt: i am actually doing bilinear interpolation :), how could this change the whole game :)...
> 
> Thanks
> 
> Louis

Try using 'interp2' instead.