MATLAB Answers

Making a map in matlab

52 views (last 30 days)
Ivan Michael
Ivan Michael on 31 Aug 2019
Answered: Hiro Yoshino on 31 Jan 2020
Hello
I have a .csv file in which is included one column with Latitudes, one column with Longtitudes and one column with Values(for example 1,2,3, etc). I would like to create a map but I don't know which command to use. I ve tried to use geoshow, geoplot and mapshow command but it is no use.
I mean i ve tried these :
lon1=d1(:,7);
lat1=d1(:,6);
values=d1(:,12);
mapshow(lat1,lon1,A,cmap) %or
geoshow(lat1,lon1,A,cmap) %or
geoplot(lat1,lon1,A,cmap)
but I have no results. Furthermore, I would like to create maps with these format (see attachment images )
The region I want to create maps is Greece.
Could anyone help me to make it?
Thanking you in advance

  1 Comment

hizaki
hizaki on 31 Jan 2020
Hi! have you found out how? I am also planning to make a map using MATLAB..

Sign in to comment.

Answers (1)

Hiro Yoshino
Hiro Yoshino on 31 Jan 2020
I bet either geoplot or geoscatter is the one for you.
if you want to use maps, e.g., openstreetmap, from outside of MATLAB echosystem, try:
name = 'openstreetmap';
url = 'a.tile.openstreetmap.org';
copyright = char(uint8(169));
attribution = copyright + "OpenStreetMap contributors";
displayName = 'Open Street Map';
addCustomBasemap(name,url,'Attribution',attribution,'DisplayName',displayName)
and
% Replace the map of your choice
% latlim: latitude, lonlim: longitude
geoscatter("SEE DOCUMENTATION for GRAMMER!!")
geobasemap("openstreetmap");
geolimits(latlim,lonlim);

  0 Comments

Sign in to comment.

Sign in to answer this question.