Hi Tumbee,
I understand that you want to plot your data in the manner shown in the image.
To achieve this, you can utilize the following MATLAB functions.
- Scatter3 – This function will assist you in visualizing the data. You can find more details about it here- https://mathworks.com/help/matlab/ref/scatter3.html
- Mean – By employing this function, you can calculate the centroid of your data. For further information, please refer to the documentation available here - https://mathworks.com/help/matlab/ref/mean.html
- Norm – This function enables you to determine the distance between two points. You can access additional information about it here - https://mathworks.com/help/matlab/ref/norm.html
I hope these suggestions prove helpful to you in drawing the desired graph.