I am new to MATLAB and am wondering if anybody could help me with this (probably basic) question:
I would like to view/save the depth value for each screen pixel (the z-buffer) of a 3D surf(), ideally in a file. I have read Using OpenGL in Matlab to get depth buffer which was helpful but I can't seem to figure out how to save the buffer values instead of just outputting them as an image.
Any help with this would be greatly appreciated.