MATLAB: Reverse y axis order

axis propertiesplotreverse y axis

Hi. I have the following script (attached )b and the run that it opens can be found at this link.
https://drive.google.com/open?id=0B0wQbicZOF7xN1BXV1FKVVRCT2c
It works perfectly except I want to reverse the the y- axis. I have tried several things but no luck. The only way I found is to do it manually. Is there another way?

Best Answer

set( hAxes, 'YDir', 'reverse' )
should do this for an axes hAxes.