3d plot from a x y z colum .txt file
5 ビュー (過去 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
0 件のコメント
回答 (1 件)
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
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 Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!