Plotting data on world map

9 ビュー (過去 30 日間)
Jim Parsons
Jim Parsons 2017 年 9 月 27 日
編集済み: KSSV 2017 年 9 月 28 日
I'm trying to plot location specific data on world map. To generate the map I use:
worldmap('World')
load coastlines
plotm(coastlat,coastlon)
Then I have a 1d vector with data, and 1d vector with longitude data and a third 1d vector with latitude data.
Tried plotting the data on world map using the following approach:
for i=1:length(data)
hold all
pcolorm(latitude(i),longitude(i),data(i))
end
colorbar
colormap jet
caxis([min max])
But this doesn't seem to work. I also tried plotm, surfm nothing seem to be working. The data corresponds to rain levels across the globe.

回答 (1 件)

KSSV
KSSV 2017 年 9 月 28 日
編集済み: KSSV 2017 年 9 月 28 日
hold on
pcolorm(latitude,longitude,data)
colorbar
colormap jet

Community Treasure Hunt

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

Start Hunting!

Translated by