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.
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.