Plot landareas, colormap/texturemap and datapoints together on a map

Hello,
I want to plot landareas, datapoints with a lat-lon coordinate together with a matrix with temperatures. The begin was easy;
axesm('MapProjection','robinson','MapLatLimit',latlim, 'MapLonLimit',lonlim)
framem
plotm(AIS_LAT,AIS_LON,'+','Markersize',2)
geoshow('landareas.shp', 'FaceColor', [0.15 0.5 0.15],'facealpha',.3)
AIS_LAT and AIS_LON are 56524x1 matrices. This code leads to a plot as I was looking for. However, I want to add a plot with temperature data from a 35x25 matrix. This data contains NaN-values as it represents the difference between sea water temperature and air temperature. Inland, there is obviously no sea water temperature and the combination of lat lon results in a NaN-value.
Besides the matrix with the temperatures there is a 1x25 vector with LAT coordinates available:
LAT =
Columns 1 through 5
34.5000 35.2500 36.0000 36.7500 37.5000
Columns 6 through 10
38.2500 39.0000 39.7500 40.5000 41.2500
Columns 11 through 15
42.0000 42.7500 43.5000 44.2500 45.0000
Columns 16 through 20
45.7500 46.5000 47.2500 48.0000 48.7500
Columns 21 through 25
49.5000 50.2500 51.0000 51.7500 52.5000
And ofcourse a similar 1x35 vector exists for the LON-coordinates:
LON =
Columns 1 through 5
-85.5000 -84.7500 -84.0000 -83.2500 -82.5000
Columns 6 through 10
-81.7500 -81.0000 -80.2500 -79.5000 -78.7500
Columns 11 through 15
-78.0000 -77.2500 -76.5000 -75.7500 -75.0000
Columns 16 through 20
-74.2500 -73.5000 -72.7500 -72.0000 -71.2500
Columns 21 through 25
-70.5000 -69.7500 -69.0000 -68.2500 -67.5000
Columns 26 through 30
-66.7500 -66.0000 -65.2500 -64.5000 -63.7500
Columns 31 through 35
-63.0000 -62.2500 -61.5000 -60.7500 -60.0000
What I want to do is plot this temperature data on top of the already created plot (see figure) where the color represents the values (see second figure as an example).
The plot where the temperature data has to be added: </matlabcentral/answers/uploaded_files/89703/Plot1.png>
An example of how i want the temperature data to be displayed (ofcourse only referring to the colors, not the type of projection): <https://nl.mathworks.com/help/examples/map/win64/mapexgeo_06.png>
I hope you guys can help me out! Normally I can by myself using the documentation and MATLAB Answers with questions from other users but I'm afraid I have to ask a question myself now!
Cheers,
Jesse

Answers (0)

Asked:

on 2 Oct 2017

Edited:

on 2 Oct 2017

Community Treasure Hunt

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

Start Hunting!