plot using latitude and longitude

조회 수: 5 (최근 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:
scatter(lon,lat,50,z,'filled')
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
borders('countries')
to plot the outline of national boundaries.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by