Matlab Image Flip Y Axis. Either fliplr or flipud flip left right or up down depending on how your data is. When acting on a matrix each column of the matrix represents a.

The image function reverses the y axis so i wanted to reverse it to correct it. I know it has something to do with gca but cannot figure out the right code. Hello first of all i know this question is dumb and that there is plenty of thread on it but i could not find any solution in those.
When acting on a matrix each column of the matrix represents a.
This code is working but it turns the image to grayscale. When acting on a matrix each column of the matrix represents a. Only setting the ydir property of the axes to normal will flip how the y axis is displayed causing the image to appear upside down. I know it has something to do with gca but cannot figure out the right code.