Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: 3D points representing cubes to 3D surface?
Replies: 3   Last Post: Nov 29, 2012 5:56 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Roger Stafford

Posts: 5,852
Registered: 12/7/04
Re: 3D points representing cubes to 3D surface?
Posted: Nov 23, 2012 7:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.