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.

回答(1 个)

KALYAN ACHARJYA
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.

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by