
Re: 3D points representing cubes to 3D surface?
Posted:
Nov 23, 2012 7:11 PM


"Francisco Seixas" wrote in message <k8ntuj$aii$1@newscl01ah.mathworks.com>... > How can I transform these points into cubes that can be visualized in 3D?           If it's of any help, this demonstrates how you can plot a single cube.
A = [0 0 0]; B = [1 0 0]; C = [0 1 0]; D = [0 0 1]; E = [0 1 1]; F = [1 0 1]; G = [1 1 0]; H = [1 1 1]; P = [A;B;F;H;G;C;A;D;E;H;F;D;E;C;G;B]; plot3(P(:,1),P(:,2),P(:,3)) axis equal
Roger Stafford

