Quiver different skip factor for rows and columns

3 views (last 30 days)
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.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 26 Aug 2019
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.

Categories

Find more on Vector Fields in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!