Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Display an Image with scaled axes
Date: Mon, 25 May 2009 15:29:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gvedft$irt$1@fred.mathworks.com>
References: <gvebg7$fba$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@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 1243265341 19325 172.30.248.37 (25 May 2009 15:29:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 25 May 2009 15:29:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:542397


You can do

imagesc(x,y,yourImage)

but you should be careful with which axis you assign as x because imagesc shows the image as if you are viewing the matrix. The first dimension is on the y axis and the second dimension [the columns] are on the x axis...


"meni vex" <meni_vex@yahoo.com> wrote in message <gvebg7$fba$1@fred.mathworks.com>...
> Hi,
> 
> I have a 2D matrix, and I want to display it as an image, for example with the 'image', 'imagesc' commands, but, with my axes. I have another 2 vectors holding the x and y values, and I want to display the 2D matrix as function of them.
> 
> How can I do this?
> 
> Thanks in advance,
> Meni