The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]
Adam Aitkenhead

Posts: 51
Registered: 12/9/09
Re: 3D points representing cubes to 3D surface?
Posted: Nov 29, 2012 5:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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;

This uses the following function from the file exchange:

Hope this helps,

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.