Is it possible to show the x,y axis values for an image?

93 Ansichten (letzte 30 Tage)
Ronan
Ronan am 8 Sep. 2016
Kommentiert: Thorsten am 8 Sep. 2016
I m trying to use an image from matlab in a paper, but I want to show the x,y axis. However when you use imshow(myImage); it doesn't show the values on the x,y axis. i.e. these are coordinates of the pixels. How do I display this?

Akzeptierte Antwort

mizuki
mizuki am 8 Sep. 2016
Get the handle of the axis and set the 'Visible' property to 'on'
imshow('peppers.png');
h = gca;
h.Visible = 'On';
  5 Kommentare

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by