Generate new coordinates from two sets.

조회 수: 2 (최근 30일)
Hampus Alfredsson
Hampus Alfredsson 2018년 3월 1일
댓글: Hampus Alfredsson 2018년 3월 2일
Hi!
I have two sets of latitude-longitude coordinates according to below:
[53.040259 9.858967];
[53.040618 9.861558];
I want to generate more coordinates between those two with a given interval of 1 meter. How can I do this?
  댓글 수: 4
Image Analyst
Image Analyst 2018년 3월 2일
What was wrong with interp1() like I answered below?
Hampus Alfredsson
Hampus Alfredsson 2018년 3월 2일
I found out how to do it with the mapping toolbox. It was much easier than with interp1. Thank you!

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2018년 3월 1일
편집: Image Analyst 2018년 3월 1일
How about interp1()? Do it on both lat and lon separately to generate vectors for each. Or you could use linspace().

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by