Filter löschen
Filter löschen

Change number of arrows in quiver-plot

34 Ansichten (letzte 30 Tage)
Sivert van Mourik
Sivert van Mourik am 18 Apr. 2018
Beantwortet: Nasir Mehmood am 1 Apr. 2021
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?

Antworten (1)

Nasir Mehmood
Nasir Mehmood am 1 Apr. 2021
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))

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by