reverse Y axis with Imagesc()
조회 수: 51 (최근 30일)
이전 댓글 표시
Hi,
How to reverse the Y axis while displaying images with imagesc () function.. I have tried as follows, it does the job, however, reverses the image as well.
ax = gca;
imagesc(x,y,I');
set(gca, 'YDir','normal');
댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 10월 2일
Set to reverse
set(gca, 'YDir','reverse');
댓글 수: 3
Ameer Hamza
2020년 10월 2일
Ah!! Y-axis is already reversed in imagesc. I think you wanted to flip x-axis?
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!