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!