필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
Md. Moklesur Rahman
Md. Moklesur Rahman 2012년 10월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by