How to format surface data into XYZ point cloud?
Show older comments
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 Comments
Luna
on 4 Jan 2019
Could you please share your .csv file and what have you done so far?
Walter Roberson
on 4 Jan 2019
Edited: Walter Roberson
on 5 Jan 2019
to confirm you want a 3d pointcloud with 220 points ?
do you have the marginal coordinates , 10 y and 22 x?
Cris LaPierre
on 4 Jan 2019
What determines Z in your surface?
Accepted Answer
More Answers (2)
Cris LaPierre
on 4 Jan 2019
0 votes
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 Comments
Walter Roberson
on 4 Jan 2019
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
on 4 Jan 2019
Good point!
Don jaya
on 9 Apr 2020
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
on 12 May 2020
Don jaya, could you describe what your available inputs are, and what outputs you want?
flemingtb
on 7 Jan 2019
0 votes
3 Comments
Cris LaPierre
on 7 Jan 2019
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
on 7 Jan 2019
Cris LaPierre
on 7 Jan 2019
See walter's answer.
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!