View plane overlapped with point cloud.

3 views (last 30 days)
Meghana Dinesh
Meghana Dinesh on 14 Sep 2015
Commented: Meghana Dinesh on 16 Sep 2015
Using the function pcfitplane, I get an equation of a plane. In this case, it is [-0.097 -0.055 0.993]. How can I view it such that it overlaps with my point cloud ?

Answers (1)

Zheng
Zheng on 15 Sep 2015
Edited: Zheng on 15 Sep 2015
mdl = pcfitplane(...);
pcshow(ptCloud);
hold on
% The returned planeModel object has a plot method
plot(mdl);
  1 Comment
Meghana Dinesh
Meghana Dinesh on 16 Sep 2015
Works good! Thank-you.
As an extension to the same problem, suppose I have PtCloud = [M X N X 3] matrix and an equation of a plane.
When I plot it using the plot function as usual, the plane looks very huge and my other data points which I have plot in 3D appear very minute. I don't want this. I want to plot it such it lies within the same range as my data in 3D. I have attached here an example data-set here and the equation of plane which has to be plot such that it overlaps with my data. Equation of plane: [0.0589 0.0111 0.9982]. I want to limit the size of my plane to my data.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!