MATLAB: 3D Fit of Centreline

3d fit centreline

I've got a 3D data set (shown below) and I want to fit it with a line, the points of this line fit need to be equidistant apart.
Any tools able to do this? Or methods of how to achieve this?
Many thanks, Will

Best Answer

Have you tried a Savitzky-Golay filter on the x, y, and z independently? Attached is a demo of sgolayfilt() in the Signal Processing Toolbox.
Related Question