MATLAB: I have 3d points and I should determine a method to produce and visualize a “center line” down the central axis

3dcentral line

Load and visualize the file data (attached). This is data cloud of 3d points . You will want to examine the first "field" coordinates associated with each "node"(x,y,z). The units are in mm. Load the second field "error". Determine a method to produce and visualise a "center line" down the central axis of figure. Determine a method to calculate the radius/diameter of the figure at a number of points down this center line. Provide an estimate of the overall figure "length" and "volume".

Best Answer

I'd use plot3() to plot the points. Then I'd use pca() to find the central principal component axes, then use plot3() again to plot those axes through the points.