Issue with Quiver plot

조회 수: 3 (최근 30일)
Turbulence Analysis
Turbulence Analysis 2021년 10월 23일
댓글: Star Strider 2021년 10월 23일
Hi,
I am creating the vector plot with Quiver () command. I would like to perform left to right flip. I have tried with Fliplr () option .. But didn't get the desired results.
Could someone help me on how to perform flip operation in the below command??. I have attached x2, y2, u , v arrays here..
c= (quiver(x2+1.5,y2(1:skip:end),u(1:skip:end,:),v(1:skip:end,:)))';
c.Color='r';
c.AutoScaleFactor=6;

채택된 답변

Star Strider
Star Strider 2021년 10월 23일
I have absolutely no idea what the desired result actually is.
One option: negate ‘x2’
Another option:
set(gca, 'XDir','reverse')
.
  댓글 수: 3
Turbulence Analysis
Turbulence Analysis 2021년 10월 23일
Thanks a lot.. Yes.. Now I am got the desired one...
Star Strider
Star Strider 2021년 10월 23일
As always, my pleasure!
.

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

추가 답변 (1개)

Turbulence Analysis
Turbulence Analysis 2021년 10월 23일
Thanks, with set(gca, 'XDir','reverse') I got the desired results. But on the x axis I always need to display negative values on left and positive on the right. Is there a way out to do this ??

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by