Data cursor showing X and Y positions but showing z position as 0

I have no idea why this is happening, the image shows that there is clearly a value for the z axis but Data cursor is just showing 0. Any way of solving this?
Many thanks

1 Comment

Is this disparity map? If so, find the Point Cloud to get z values.

Sign in to comment.

 Accepted Answer

Based upon the format of the data values being reported, I deduce that you are using pcolor(YourData) to display the data. You should instead use
surf(YourData);
view([0 90]);
axis tight

More Answers (0)

Community Treasure Hunt

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

Start Hunting!