How to format surface data into XYZ point cloud?
显示 更早的评论
I have a .csv data set that is 10x22 surface data and i'd like to convert it to XYZ point cloud. What is the best way to do this in Matlab?
3 个评论
Luna
2019-1-4
Could you please share your .csv file and what have you done so far?
Walter Roberson
2019-1-4
编辑:Walter Roberson
2019-1-5
to confirm you want a 3d pointcloud with 220 points ?
do you have the marginal coordinates , 10 y and 22 x?
Cris LaPierre
2019-1-4
What determines Z in your surface?
采纳的回答
更多回答(2 个)
Cris LaPierre
2019-1-4
0 个投票
If you can successfully create a surface with your data using surf(X,Y,Z), the best way to create an X,Y,Z point cloud is to use scatter3(X,Y,Z).
4 个评论
Walter Roberson
2019-1-4
surf permits vector x and y with array z. scatter3 requires vector x and y and z. If you have the marginal values then meshgrid or ndgrid to get array X and array Y and then work with X(:) Y(:) z(:)
Cris LaPierre
2019-1-4
Good point!
Don jaya
2020-4-9
I create a surface from the data i have. How to get the Z value of the surface with using only random x and y cordinates
Walter Roberson
2020-5-12
Don jaya, could you describe what your available inputs are, and what outputs you want?
flemingtb
2019-1-7
0 个投票
3 个评论
Cris LaPierre
2019-1-7
We can help you format it, but can you describe your data? How would you create a point cloud from your CSV data? Specifically, what would you X, Y and Z data be? Is your CSV the Z values and the column number your X and the row number your Y?
flemingtb
2019-1-7
Cris LaPierre
2019-1-7
See walter's answer.
类别
在 帮助中心 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!