Issue with Quiver plot

2 ビュー (過去 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 Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by