Quiver different skip factor for rows and columns

3 vues (au cours des 30 derniers jours)
Muhammad Sofwan Bin Mohamad
Muhammad Sofwan Bin Mohamad le 26 Août 2019
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.

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 26 Août 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.

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by