How to change the position of arrow in quiver from head/tail to middle of the line?

40 ビュー (過去 30 日間)
Swapnil Sayan Saha
Swapnil Sayan Saha 2020 年 1 月 8 日
回答済み: Adam Danz 2023 年 6 月 30 日
Is there a way to change the position of arrow in quiver from head/tail to middle of the line?

回答 (2 件)

darova
darova 2020 年 1 月 8 日
Use scale
scale = 0.5;
quiver(...,scale)
  5 件のコメント
Swapnil Sayan Saha
Swapnil Sayan Saha 2020 年 1 月 8 日
I want the arrow to be shown in the body of the line, not in the head or tail as I have shown in the figure.
darova
darova 2020 年 1 月 8 日
Draw line and half of quiver then
plot(x,y)
hold on
quiver(...)
hold off

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


Adam Danz
Adam Danz 2023 年 6 月 30 日
Starting in MATLAB R2022a, you can use the Alignment property of the quiver object to specity head, tail, or center alignment.

カテゴリ

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

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by