3

I am using below code to plot the Kinect point clouds in Matlab:

showPointCloud(pcloud, 'VerticalAxis', 'y', 'VerticalAxisDir', 'Down');
xlabel('X (m)');
ylabel('Y (m)');
zlabel('Z (m)');

Which give me this plot : enter image description here

But I wish to plot it up to 1 m in Z value! How can I set it to display point clouds up to 1 m?

CyberMan
  • 63
  • 8

1 Answers1

2

As @LuisMendo responded in comments:

when i use zlim the plot has changed as below :

enter image description here

This is the edited code :

showPointCloud(pcloud, 'VerticalAxis', 'y', 'VerticalAxisDir', 'Down');
xlabel('X (m)');
ylabel('Y (m)');
zlabel('Z (m)');

zlim ([0,1])
CyberMan
  • 63
  • 8
  • 1
    Don't forget to "accept" this answer (click on the big tick mark in the upper left) when you can, so that the question doesn't appear as unanswered – Luis Mendo Mar 03 '15 at 17:47