How do I align two 3D curves that are displaced in time?
4 views (last 30 days)
Show older comments
I have two 3D curves (trajectories) that are nearly identical. One curve is a subset of the other, that is, its end point coordinates are within the longer curve (I hope). The time data does not align between the two curves. How do I adjust the two curves so they overlay, so that I can update the times to match? I am dealing with latitude, longitude and altitude here.
If either endpoint of the shorter curve ends up extending outside the longer curve, I need to account for that too.
12 Comments
Star Strider
on 8 Aug 2024
If you expect the two to be linearly related (that they are inherently nonlinear is not important), ignore the times (or adjust the times and sampling intervals to start at the same value and have the same sampling frequency) and then do a linear fit using fitlm or regress or whatever linear or nonlinear regression function is appropriate, with overlapping ranges of the independent variables and equal numbers of observations. The parameter values and related statistics should give you an idea of how (and how closely) they are related.
Without the data (or a representative data set), this is simply a guess as to an appropriate approach.
Answers (0)
See Also
Categories
Find more on Fit Postprocessing 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!