Quiver plot - how to use in this case?

조회 수: 3 (최근 30일)
Ashfaq Ahmed
Ashfaq Ahmed 2021년 12월 6일
댓글: Ashfaq Ahmed 2021년 12월 7일
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?

채택된 답변

Chunru
Chunru 2021년 12월 7일
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
Ashfaq Ahmed
Ashfaq Ahmed 2021년 12월 7일
Hi, thank you so, so much. Do you know how can I change the size/color of the arrows and arrow heads?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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