How can I plot my coórdinates on top of the map, Ans how can I choose my own area? Cannot find a tutorial on the subject.
Show older comments
In the code my questions
kind reagrds Ellen
land = readgeotable("landareas.shp");
geoplot(land)
%how can I limit the chart lat 50-52 and lon 2.5-4.5
% and show the coordinates above this chart?
% Is there a tutorial how to?
% Coördinates to display
station1_lat = 51.9775;
station1_lon = 4.12;
station2_lat = 51.619722;
station2_lon = 3.681944;
station3_lat = 51.442222;
station3_lon = 3.596111;
station4_lat = 51.233333;
station4_lon = 2.916667;
% create figure
figure;
% Plot the stations on the map
geoshow(station1_lat, station1_lon, 'DisplayType', 'point', 'Marker', 'o', 'MarkerEdgeColor', 'r', 'MarkerFaceColor', 'r', 'MarkerSize', 10);
geoshow(station2_lat, station2_lon, 'DisplayType', 'point', 'Marker', 'o', 'MarkerEdgeColor', 'b', 'MarkerFaceColor', 'b', 'MarkerSize', 10);
geoshow(station3_lat, station3_lon, 'DisplayType', 'point', 'Marker', 'o', 'MarkerEdgeColor', 'g', 'MarkerFaceColor', 'g', 'MarkerSize', 10);
geoshow(station4_lat, station4_lon, 'DisplayType', 'point', 'Marker', 'o', 'MarkerEdgeColor', 'm', 'MarkerFaceColor', 'm', 'MarkerSize', 10);
% add a legend
legend('Hoek van Holland', 'Roompot Buiten', 'Vlissingen', 'Oostende');
% add a title
title('Kaart met de locaties van de stations');
Accepted Answer
More Answers (0)
Categories
Find more on Timetables 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!