Specify limits to a plane's dimension, depending on data dimensions, so it exactly overlaps data
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I am plotting a plane which should overlap with 3D data available. In certain cases (as shown below), the plane's dimension becomes too large. How can I specify the dimensions of the plane so that it more or less overlaps with my data and does not appear very huge?
Is it in the meshgrid function? What should the input be? This dimension should adapt to all my other (but similar) data.

This is how you can use the functions:
DisplayReconstructedScene( PointCloud3D, J1 ); hold on
load('n,V and p.mat')
[ n,V,p,x,y,z ] = Display_Plane(n, V, p);
Answers (1)
Thorsten
on 21 Sep 2015
0 votes
Determine the minimum and maximum values of your data and then use patch to draw a plane below the data.
5 Comments
Meghana Dinesh
on 21 Sep 2015
First you have to determine the extension of your point cloud in X,Y and Z. I assume that you can somehow compute xmin, xmax, ymin, ymax, zmin, zmax, such that all x-values fall between xmin, xmax etc.
Then you can plot a patch in 3D space by specifying the coordinates of its corners
z = zmin - 0.1*(zmax-zmin); % 10% below smallest z-value
col = [0.5 0.5 0.5]; % sample color of the plane
patch([xmin xmax xmax xmin], [ymin ymin ymax ymax], [z z z z], col)
Meghana Dinesh
on 21 Sep 2015
Meghana Dinesh
on 21 Sep 2015
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!