How to extract data from reverse quiver plot?

조회 수: 7 (최근 30일)
Abbie
Abbie 2014년 11월 23일
댓글: Adam Danz 2020년 4월 16일
Hi,
I have an original quiver plot. My interest is to extract the data (x-reverse, y-reverse, u-reverse, v-reverse) from the figure with reverse x-direction, as shown in Figure B.
quiver (x, y, u, v) %original quiver plot
set (gca,'XDir','reverse') %reverse in x-direction
By simply change the original x to –x and original u to –u will cause to the undesired change of x-coordinates (-30 to 30 in Figure B).
Can you please help me on how to achieve my objective?
Thanks so much for you help.
  댓글 수: 1
Adam Danz
Adam Danz 2020년 4월 16일
Instead of flipping the x axis direction, flip the sign of the x-component of the quiver vectors.
quiver (x, y, -u, v)

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by