http://www.mathworks.com/matlabcentral/newsreader/view_thread/252143
MATLAB Central Newsreader  Display an Image with scaled axes
Feed for thread: Display an Image with scaled axes
enus
©19942014 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Mon, 25 May 2009 14:55:03 +0000
Display an Image with scaled axes
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252143#652246
meni vex
Hi,<br>
<br>
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.<br>
<br>
How can I do this?<br>
<br>
Thanks in advance,<br>
Meni

Mon, 25 May 2009 15:29:01 +0000
Re: Display an Image with scaled axes
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252143#652257
Sadik
You can do<br>
<br>
imagesc(x,y,yourImage)<br>
<br>
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...<br>
<br>
<br>
"meni vex" <meni_vex@yahoo.com> wrote in message <gvebg7$fba$1@fred.mathworks.com>...<br>
> Hi,<br>
> <br>
> 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.<br>
> <br>
> How can I do this?<br>
> <br>
> Thanks in advance,<br>
> Meni

Tue, 26 May 2009 22:40:21 +0000
Re: Display an Image with scaled axes
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252143#652601
meni vex
Thanks, but I already tried it, and it gave me the same results as imagesc(myImage), except a change of the axis labels...<br>
Also in the Matlab doc. they say that it will only change the axes labels, and indeed that was the only change, I mean I expected the graph to change also (due to new scaling of axes) but nothing...<br>
Am I missing something here? any other suggestion?<br>
<br>
"Sadik " <sadik.hava@gmail.com> wrote in message <gvedft$irt$1@fred.mathworks.com>...<br>
> You can do<br>
> <br>
> imagesc(x,y,yourImage)<br>
> <br>
> 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...<br>
> <br>
> <br>
> "meni vex" <meni_vex@yahoo.com> wrote in message <gvebg7$fba$1@fred.mathworks.com>...<br>
> > Hi,<br>
> > <br>
> > 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.<br>
> > <br>
> > How can I do this?<br>
> > <br>
> > Thanks in advance,<br>
> > Meni

Wed, 27 May 2009 07:08:01 +0000
Re: Display an Image with scaled axes
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252143#652648
Pekka Kumpulainen
"meni vex" <meni_vex@yahoo.com> wrote in message <gvhr4l$14d$1@fred.mathworks.com>...<br>
> Thanks, but I already tried it, and it gave me the same results as imagesc(myImage), except a change of the axis labels...<br>
> Also in the Matlab doc. they say that it will only change the axes labels, and indeed that was the only change, I mean I expected the graph to change also (due to new scaling of axes) but nothing...<br>
> Am I missing something here? any other suggestion?<br>
> <br>
> "Sadik " <sadik.hava@gmail.com> wrote in message <gvedft$irt$1@fred.mathworks.com>...<br>
> > You can do<br>
> > <br>
> > imagesc(x,y,yourImage)<br>
> > <br>
> > 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...<br>
> > <br>
> > <br>
> > "meni vex" <meni_vex@yahoo.com> wrote in message <gvebg7$fba$1@fred.mathworks.com>...<br>
> > > Hi,<br>
> > > <br>
> > > 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.<br>
> > > <br>
> > > How can I do this?<br>
> > > <br>
> > > Thanks in advance,<br>
> > > Meni<br>
<br>
Have you tried surface? That might be what you want..

Sun, 31 May 2009 09:36:01 +0000
Re: Display an Image with scaled axes
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252143#653638
meni vex
Working fine! thank you so much Pekka!<br>
<br>
"Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi> wrote in message <gviosh$7et$1@fred.mathworks.com>...<br>
> "meni vex" <meni_vex@yahoo.com> wrote in message <gvhr4l$14d$1@fred.mathworks.com>...<br>
> > Thanks, but I already tried it, and it gave me the same results as imagesc(myImage), except a change of the axis labels...<br>
> > Also in the Matlab doc. they say that it will only change the axes labels, and indeed that was the only change, I mean I expected the graph to change also (due to new scaling of axes) but nothing...<br>
> > Am I missing something here? any other suggestion?<br>
> > <br>
> > "Sadik " <sadik.hava@gmail.com> wrote in message <gvedft$irt$1@fred.mathworks.com>...<br>
> > > You can do<br>
> > > <br>
> > > imagesc(x,y,yourImage)<br>
> > > <br>
> > > 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...<br>
> > > <br>
> > > <br>
> > > "meni vex" <meni_vex@yahoo.com> wrote in message <gvebg7$fba$1@fred.mathworks.com>...<br>
> > > > Hi,<br>
> > > > <br>
> > > > 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.<br>
> > > > <br>
> > > > How can I do this?<br>
> > > > <br>
> > > > Thanks in advance,<br>
> > > > Meni<br>
> <br>
> Have you tried surface? That might be what you want..