How to skip vectors and plot the n-vector with quiver ( 2D-vecor-vector field)
이전 댓글 표시
I want to know how to skip some rows by plotting a two-dimensional vector-field.
For example, let U and V be the coordinates and x and y the vector components as writen below:
U=[1 2 3 4 5 6 7 8 9 10];
V=[0 0 0 0 0 0 0 0 0 0];
x=[0 0 0 0 -1 1 0 2 1 2];
y=[1 2 -1 -2 0 0 0 0 1 2];
then I use quiver to plot the vector-field as follows:
Vector=[U' V' x' y'];
quiver(Vector(:,1),Vector(:,2),Vector(:,3),Vector(:,4),0,'LineWidth',2,'MaxHeadSize',.1); axis([0 12 -3 3])
Now it would be great if someone could tell me what I need to write to plot only every second, third or n-vector (row)
I thank you in advancoe for your help
Emerson
채택된 답변
추가 답변 (2개)
Sachini Pathirana
2019년 2월 14일
편집: Sachini Pathirana
2019년 2월 14일
0 개 추천
How can I use the same thing to select points in a 2D matrix? I have a mtrix of 695*1028 and i want to plot selected points using quiver.
ali veli
2019년 3월 6일
0 개 추천
Hi. How do I get this vector graphic with quiver3

카테고리
도움말 센터 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!