Divide vector of coordinates into even intervals.
Mostrar comentarios más antiguos
Hi!
I have a long vector of longitude and latitude coordinates representing one bus route. Though the distance between each following pair of coordinates is different through the vector. I want to generate new longitude-latitude coordinates so that I have lots of intervals with same length.
Respuesta aceptada
Más respuestas (1)
KSSV
el 22 de Feb. de 2018
1 voto
You need to have a look on interpolation......Read about interp1.
2 comentarios
Hampus Alfredsson
el 22 de Feb. de 2018
Stephen23
el 22 de Feb. de 2018
@Hampus Alfredsson: interpolation works with negative values just as well as it does positive ones. Please make a new comment and upload your code by clicking the paperclip button.
Categorías
Más información sobre Coordinate Reference Systems en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!