How to plot quiver in normalize size
조회 수: 32 (최근 30일)
이전 댓글 표시
Greetings
I have a problem to display the current speed using quiver. My problem is setting up the length scale of vector. I try below code but some vectors show more biggest than the others. So how I can do that to normalize that vectors. Therefore they show same size but different in direction. Anybody can help me ....
Thanks for advance
p= 10;
quiver(x1,y1,p*u2,p*v2,0,'color',[0 0 0])

댓글 수: 0
답변 (1개)
KSSV
2017년 9월 15일
Read the documentation of quiver there is an option of restricting/ mentioning the size of arrows by a scale.
quiver(...,scale) automatically scales the arrows to fit within the grid and then stretches them by the factor scale. scale = 2 doubles their relative length, and scale = 0.5 halves the length. Use scale = 0 to plot the velocity vectors without automatic scaling.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!