Importing Point cloud to overlay on solid object
8 次查看(过去 30 天)
显示 更早的评论
I would like to import point cloud data from metrology system into Matlab.
The datatype i have point cloud is in text/asc/spreesheet/can also be converted to matlab array
i would like to visualise these points and later place these on the solid step file object i imported earlier to see the diffrence between them.
i tried to use mesh function but i get these errors , so i tried to change the import type and it doesn't work .
Error in Test2 (line 3)
x = Experiment1coordinates.X; % All x values
^^^^^^^^^^^^^^^^^^^^^^^^
>> Test2
Error using mesh (line 71)
Z must be a matrix, not a scalar or vector.
Error in Test2 (line 6)
s = mesh(x,y,z,'FaceAlpha','0.5')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 个评论
William Rose
2025-2-25
@Dhinu, provide an example of your data file or files, if you want more assistance.
回答(1 个)
Walter Roberson
2025-2-25
You probably need to use scatteredInterpolant . In some cases the scattered data is an "unraveled" rectangular grid; in such cases you can reshape() the data to be a grid and then use griddedInterpolant
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!