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.
  1 件のコメント
Deepthi B
Deepthi B 2021 年 5 月 19 日
Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by