Divide vector of coordinates into even intervals.
Show older comments
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.
Accepted Answer
More Answers (1)
KSSV
on 22 Feb 2018
1 vote
You need to have a look on interpolation......Read about interp1.
2 Comments
Hampus Alfredsson
on 22 Feb 2018
Stephen23
on 22 Feb 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.
Categories
Find more on Coordinate Reference Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!