3
votes

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?

1
Check zlim - Luis Mendo
Thanks @LuisMendo, it works - CyberMan
@LuisMendo, you should make it an answer. - Dima
@Dima Thanks. It was really easy, and the OP has already posted it as an answer, so he will be able to accept it after the appropriate time period (not sure how much time it is) - Luis Mendo
how u get your kinect data to matlab? - JavaNullPointer

1 Answers

2
votes

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])