필터 지우기
필터 지우기

Quiver plot appears upside down.

조회 수: 10 (최근 30일)
Kyle McKinlay
Kyle McKinlay 2021년 11월 20일
댓글: Kyle McKinlay 2021년 11월 21일
Hello,
I'm trying to verify a PIV analysis method but first came across an issue with the quiver command. As seen from the first two attached images, the sense is such that there is no data on the upper left corner triangle. However, the quiver plot displays this data gap in the bottom left corner.
I'm using quiver(u,v), as I don't have x,y data. Does anyone have any suggestions please?
Thank you very much!

채택된 답변

Dave B
Dave B 2021년 11월 20일
편집: Dave B 2021년 11월 20일
Images are normally shown in what's called ij coordinates, meaning (in the all positive number case) the top left corner is 0,0, but quiver defaults to xy co-ordinates meaning (in the all positive number case) the bottom left corner is 0,0
Fortunately, MATLAB makes it easy to switch, just do:
axis ij
after making your quiver. Alternatively, you could do:
set(gca,'YDir','reverse')
which is what axis ij does.
  댓글 수: 1
Kyle McKinlay
Kyle McKinlay 2021년 11월 21일
Thank you very much for your help and quick reply! :)

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by