Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Md. Moklesur Rahman
Md. Moklesur Rahman am 3 Okt. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by