3d plot from a x y z colum .txt file

1 次查看(过去 30 天)
Hello I´m a mechanichal engineering student and I´m a total beginner in Matlab. I have a .txt file with 3 columns (x,y,z data) taken from Leica and Confocal Uniovi Image software. And i need to import that .txt file and 3d plot it but as said I´m totally noob and dont have any ideo how to start.
Also, I need to import more than one .txt and compare them (to measure the tool wear in a CMC grinding wheel
Any help is welcome.
Thanks

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-10-27
Great starting place is MATLAB Onramp. It covers the besics of using MATLAB, including importing data and getting help. It doesn't cover 3D plotting, but you can't do that until you get the data into MATLAB.
Once the data is in MATLAB, consider exploring the interative Create Plot live task. Do you know what type of 3D plot you want to create? You might be interested in scatter3. If you want to creaet a mesh or surface, you likely need to do some reshaping of your data.
  5 个评论
Cris LaPierre
Cris LaPierre 2021-10-27
Ch 9 of MATLAB Onramp covers this, but yes, use hold on and hold off.
You do not need to use subplot unless you have a 2nd graph you want to include in the same figure.
You can specify color as an optional input to scatter3.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by