MATLAB Answers

plot using latitude and longitude

조회 수: 8(최근 30일)
Deepthi B
Deepthi B 2021년 5월 19일
댓글: Deepthi B 2021년 5월 19일
How can I make plot like this in Matlab? Can anyone please explain the procedure?

채택된 답변

Chad Greene
Chad Greene 2021년 5월 19일
That looks like you have scattered data. If you have an array of latitudes, an array of longitudes, and a corresponding array of some values z, then the easiest way to make that kind of plot is to treat longitude as the x variable and latitude as the y variable. Then use the standard scatter function like this:
The 50 above sets the size of the markers. The word 'filled' makes the circles filled with color rather than hollow.
If you would like to add national borders, I recommend using the borders function in Climate Data Toolbox. Syntax would be
to plot the outline of national boundaries.
  댓글 수: 1
Deepthi B
Deepthi B 2021년 5월 19일
Thanks a lot

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by