Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Md. Moklesur Rahman
Md. Moklesur Rahman el 3 de Oct. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by