reverse Y axis with Imagesc()
52 次查看(过去 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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!