How can I reverse the y-axis when I use the IMAGE or IMAGESC function to display an image in MATLAB?
Show older comments
I execute the following commands to display an image using the IMAGESC function:
load clown
clims = [10 60];
imagesc(X,clims)
colormap(gray)
The y-axis runs from the top of the image to the bottom. I would like to reverse the y-axis so that it starts at the bottom of the image and runs to to the top.
Accepted Answer
More Answers (1)
BHANESH BHADRECHA
on 2 Nov 2015
Edited: madhan ravi
on 3 Feb 2019
set(gca,'YDir','normal')
Categories
Find more on Blue in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!