MATLAB: Plot heat map on map using Latitude, Longitude and the data value

circleheatmaplatlonmappingMapping Toolbox

Hi,
i have a number of locations across Europe (lat,lon), and for each one i have a corresponding value (in a form of a vector). I would like to create a heatmap using the mapping toolbox such that the a circle is drawn around each lat/lon, with the colour of these circles being defined based on the value my vector.
a simple example is as follows:
figure(1);
f=worldmap([33 68],[-15 37]);
geoshow('landareas.shp', 'FaceColor', [1 1 1],'DefaultEdgeColor', 'b')
PointLatLon = [51 -2.3;54 -3.2;50 3.9;51 5.5;48 1.1];
mValue = [1 4 2 7 3];
plotm(PointLatLon(:,1),PointLatLon(:,2),'r.');
There is a code by Chad Greene which i can use to generate the circles (attached), but i don't know how to specify the colour in a heatmap form. the code for the circle can be found at: http://www.mathworks.com/matlabcentral/fileexchange/48122-circlem
Any help is much appreciated.

Best Answer

I think that scatterm will work nicely. It would look something like this:
markerSize = 50;
scatterm(PointLatLon(:,1), PointLatLon(:,2), markerSize, mValue,'Filled');
colorbar
The colors will be chosen from the current colormap based on the value. You can use the colormap command or the figure's colormap editor to change the color coding scheme.