フィルターのクリア

Quiver scales U and V for different X and Y

2 ビュー (過去 30 日間)
Said Parlak
Said Parlak 2022 年 4 月 5 日
コメント済み: Said Parlak 2022 年 4 月 5 日
Hello everyone,
I have some flux data to demonstrate and I'm going to use quiver plot. There is sometthing I have noticed that quiver scales U and V vectors according to the X and Y values. Can I prevent quiver to scale acc. to X and Y values?
Here is an example;
dir1=ones(5); dir2=ones(5)
lct1=1:5; lct2=1:5
quiver(lct1,lct2,dir1,dir2)
dir1=ones(5); dir2=ones(5)
lct1=1:5; lct2=5*lct1;
quiver(lct1,lct2,dir1,dir2)
2 outputs are somehow different and I cannot find how to tune it.
Regards,
Said

回答 (1 件)

MJFcoNaN
MJFcoNaN 2022 年 4 月 5 日
You can make "scale" 0 or "off"
quiver(lct1,lct2,dir1,dir2,'off')
Official Help on quiver: "To disable automatic scaling, specify scale as 'off' or 0. When you specify either of these values, the AutoScale property of the quiver object is set to 'off' and the length of the arrow is determined entirely by U and V."
  3 件のコメント
MJFcoNaN
MJFcoNaN 2022 年 4 月 5 日
That probably means there is no "auto scale" in your original result as well.
The two figures you posted are not different according to the arrows, but the axis scale. y:x=1 vs y:x=5
Said Parlak
Said Parlak 2022 年 4 月 5 日
I see, I think I should scale the U and V vectors according to the X:Y scale since I cannot use axis equal option.
Thank you so much for responding me.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by