Clear Filters
Clear Filters

HELP please!! pointCloud format

2 views (last 30 days)
Márcio Marques
Márcio Marques on 30 Mar 2017
Answered: Walter Roberson on 30 Mar 2017
Hello everyone
I need build one pointcloud with 10 lines of values, but i dont know how can i do this.
In the example:
ptCloud = pointCloud (xyzPoints)
I can do:
ptCloud = pointCloud ([2,3,4])
but this form is one line of x, y, z.
And how i can do this for 10 lines of points (x,y,z)?
This is for a standard form:
ptCloud1 = pointCloud (rand (100, 3, 'single'))
Build one table with 200 lines and 3 columns (x, y, z) with rand function.
But I need to insert 10 lines of values (x, y, z) and then build a pointcloud.
Anyone have idea how can i do this?
Thank you very much.

Answers (1)

Walter Roberson
Walter Roberson on 30 Mar 2017
values = rand(10, 3, 'single');
ptCloud = pointCloud(values);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!