reverse Y axis with Imagesc()
63 ビュー (過去 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!