1

I have a set of points in 3D (x, y and z over time). I use the answer#1 in the following link to fit a line to the set of 3D points.

Fitting a line in 3D

In the link above, the dimension of data (set of 3D points over time) is (120,3). I can generate the data. In the code however, one can only visualize the results. How do I get for example data_fit of the same dimension as data but now the fitted one.

Thanks.

Lalu
  • 137
  • 9

0 Answers0