Generate new coordinates from two sets.

2 visualizaciones (últimos 30 días)
Hampus Alfredsson
Hampus Alfredsson el 1 de Mzo. de 2018
Comentada: Hampus Alfredsson el 2 de Mzo. de 2018
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 comentarios
Image Analyst
Image Analyst el 2 de Mzo. de 2018
What was wrong with interp1() like I answered below?
Hampus Alfredsson
Hampus Alfredsson el 2 de Mzo. de 2018
I found out how to do it with the mapping toolbox. It was much easier than with interp1. Thank you!

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 1 de Mzo. de 2018
Editada: Image Analyst el 1 de Mzo. de 2018
How about interp1()? Do it on both lat and lon separately to generate vectors for each. Or you could use linspace().

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by