フィルターのクリア

Change number of arrows in quiver-plot

34 ビュー (過去 30 日間)
Sivert van Mourik
Sivert van Mourik 2018 年 4 月 18 日
回答済み: Nasir Mehmood 2021 年 4 月 1 日
I have made a quiver-plot with the function
quiver(x,y,u,v)
Where x,y,u and v all are 201*194 matrices, so I end up with 38 994 arrows. How do I choose only a few of the arrows so that my plot won't be so messy?

回答 (1 件)

Nasir Mehmood
Nasir Mehmood 2021 年 4 月 1 日
You may try following combination with different values of "sc" parameter
sc = 10; % choose any value suitable for required arrows
quiver(x(1:sc:end,1:sc:end), y(1:sc:end,1:sc:end), u(1:sc:end,1:sc:end), v(1:sc:end,1:sc:end))

カテゴリ

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