Quiver different skip factor for rows and columns

3 ビュー (過去 30 日間)
Muhammad Sofwan Bin Mohamad
Muhammad Sofwan Bin Mohamad 2019 年 8 月 26 日
回答済み: KALYAN ACHARJYA 2019 年 8 月 26 日
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 Center および File ExchangeVector Fields についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by