I have a vector with values for longitude, another with values for latitude, and another for values of surface temperature. I would like to plot a geographical map in Matlab in which at each longitude and latitude point it shows the value of the temperature in a color scale, with a bar legend. I have tried using geomap but I don't have the data in shp format so I don't really know how to do that. Could you help me? Thank you

댓글 수: 1

Cris LaPierre
Cris LaPierre 2022년 4월 2일
Could you share the code and data you have?
I'd start by looking at geoscatter.

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

답변 (1개)

Dave B
Dave B 2022년 4월 9일

0 개 추천

How about something like this?
paris = [48.5 2.2 46];
london = [51.5 0.1 48];
newyork = [40.7 -74 54];
natick = [42.3 -71.3 58];
losangeles = [34 -118.2 83];
sydney = [-33.9 151.2 63];
data=[paris;london;newyork;losangeles;sydney;natick];
markersize=100;
geoscatter(data(:,1), data(:,2), markersize, data(:,3), 'filled')
colormap turbo
c=colorbar;
c.Label.String="Temperature \circF";

카테고리

도움말 센터File Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2022년 4월 2일

답변:

2022년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by