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

조회 수: 25 (최근 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 CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by