How do I align two 3D curves that are displaced in time?
조회 수: 5 (최근 30일)
이전 댓글 표시
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
Star Strider
2024년 8월 8일
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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fit Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!