How do I reverse the y-axis in image?
이전 댓글 표시
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. Please help me.
채택된 답변
추가 답변 (4개)
Chad Greene
2014년 11월 25일
And another solution:
axis ij
Wagih Abu Rowin
2018년 10월 5일
12 개 추천
set(gca,'Ydir','reverse')
댓글 수: 1
Shushobhit Chaudhary
2019년 5월 28일
This is the best answer. Thanks a lot. It helped me a lot.
Shane
2014년 11월 25일
2 개 추천
Alternatively, you can flip the array. Either fliplr or flipud Flip Left-Right, or Up-Down, depending on how your data is.
plot(X, fliplr(Y))
Jamel
2022년 6월 7일
0 개 추천
How do I reverse the "Interference from Satellite Constellation Communication Link" code, where the direction starts from the opposite way.
카테고리
도움말 센터 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!