Quiver different skip factor for rows and columns
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I'm trying to reduce the number of arrows in quiver and successfully did it using below code:
V=[xmat' ymat' vx' vy'];
skip=2;
V_skip=V(1:skip:end,:);
figure
quiver(V_skip(:,1),V_skip(:,2),V_skip(:,3),V_skip(:,4));
Which equally plot every other element along x and y direction. However, I want to skip more arrow along y direction. For example skip 2 elements along x direction and skip 4 elements along y direction. Is it possible to do so?
Thank you in advance.
댓글 수: 0
답변 (1개)
KALYAN ACHARJYA
2019년 8월 26일
As per my basic undestanding, you can do that, because all are vectors, you can't plot the vectors having unequal lengths. But, absolutely you can reduce the arrows in equal propotions in both x and y directions.
Wait for experts answer or comments, may they suggest Jugaad way to display as per your requirements.
댓글 수: 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!