Geographical maps in Matlab

5 views (last 30 days)
Aaqib Jamshed
Aaqib Jamshed on 2 Apr 2022
Answered: Dave B on 9 Apr 2022
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 Comment
Cris LaPierre
Cris LaPierre on 2 Apr 2022
Could you share the code and data you have?
I'd start by looking at geoscatter.

Sign in to comment.

Answers (1)

Dave B
Dave B on 9 Apr 2022
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];
geoscatter(data(:,1), data(:,2), markersize, data(:,3), 'filled')
colormap turbo
c.Label.String="Temperature \circF";


Find more on Geographic Plots in Help Center and File Exchange





Community Treasure Hunt

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

Start Hunting!