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');

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 10월 2일

0 개 추천

Set to reverse
set(gca, 'YDir','reverse');

댓글 수: 3

Turbulence Analysis
Turbulence Analysis 2020년 10월 2일
Thanks.. I tried, with 'reverse' function no change at all.
Turbulence Analysis
Turbulence Analysis 2020년 10월 2일
Hi, I sorted it out. just added.
I1 = (fliplr(I));
Ameer Hamza
Ameer Hamza 2020년 10월 2일
Ah!! Y-axis is already reversed in imagesc. I think you wanted to flip x-axis?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2020년 10월 2일

댓글:

2020년 10월 2일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by