reverse Y axis with Imagesc()

조회 수: 51 (최근 30일)
Turbulence Analysis
Turbulence Analysis 2020년 10월 2일
댓글: Ameer Hamza 2020년 10월 2일
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일
Set to reverse
set(gca, 'YDir','reverse');
  댓글 수: 3
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?

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

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by