Borrar filtros
Borrar filtros

Quiver plot - how to use in this case?

4 visualizaciones (últimos 30 días)
Ashfaq Ahmed
Ashfaq Ahmed el 6 de Dic. de 2021
Comentada: Ashfaq Ahmed el 7 de Dic. de 2021
Hi guys,
I have my latitude matrix (71x259), longitude matrix (71x259), and the geostrophic current matrices (u, and v components each are 71x259 size). Now, if I plot the quiver plot like this way -
quiver(lat,lon,u,v);
I get hundres of thousands of arrows (velocity vectors) that I attached with this post. But I would love to show only 15 to 20 for the clarity of my picture. Can you please help me on reducing the numver of the arrows?

Respuesta aceptada

Chunru
Chunru el 7 de Dic. de 2021
Try the following:
quiver(lat(1:5:end, 1:10:end),lon(1:5:end, 1:10:end),u(1:5:end, 1:10:end),v(1:5:end, 1:10:end));
  1 comentario
Ashfaq Ahmed
Ashfaq Ahmed el 7 de Dic. de 2021
Hi, thank you so, so much. Do you know how can I change the size/color of the arrows and arrow heads?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by