How do I align two 3D curves that are displaced in time?

조회 수: 4 (최근 30일)
Kurt
Kurt 2024년 8월 7일
편집: Adam Danz 2024년 8월 8일
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
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.
dpb
dpb 2024년 8월 8일
"Without the data (or a representative data set), this is simply a guess..."
+1/0

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by