필터 지우기
필터 지우기

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 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