Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to make a line in a map using latitude and longitude?

1 vue (au cours des 30 derniers jours)
Md. Moklesur Rahman
Md. Moklesur Rahman le 3 Oct 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello everyone,
I am trying to make a line connecting all the points from the starting to the end point based on the latitude and the longitude during a cruise campaingn using the following code:
close all; clear all; clc;
coast = load('coast');
figure('Color','w')
axesm('lambertstd','MapLatLimit',[30 75],'MapLonLimit',[120 220],'MLineLocation',15,'PLineLocation',10) axis off; framem on; gridm on; mlabel on; plabel on;
geoshow(coast.lat, coast.long, 'DisplayType', 'polygon','FaceColor', [0.6 1.0 0.6]);
A = xlsread('Map data.xlsx');
lat = A(:,4);
long = A(:,5);
But the line is not creating. can anybody please help me to do that? Thank you very much in advance.
Additional information (to connect and make the line)
Latitude [degrees_north] Longitude [degrees_east] 37.4653 126.6025 37.4654 126.6018 37.4662 126.5967 46.4488 158.9518 46.4598 158.9663 46.4635 158.9711

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by