Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: 3D points representing cubes to 3D surface?
Posted:
Nov 29, 2012 5:56 AM


If A is your Nx3 matrix, then the following code should plot it:
B = zeros(max(A,[],1)); for loopR = 1:size(A,1) B(A(loopR ,1),A(loopR ,2),A(loopR ,3)) = 1; end PATCH_3Darray(B)
This uses the following function from the file exchange: http://www.mathworks.co.uk/matlabcentral/fileexchange/28497plota3darrayusingpatch
Hope this helps, Adam



