View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.7 | 27 ratings Rate this file 54 Downloads (last 30 days) File Size: 1.49 KB File ID: #3280 Version: 1.0
image thumbnail



Suresh Joel (view profile)


18 Apr 2003 (Updated )

Draws a 3-D cube in a 3-D graph.

| Watch this File

File Information

Simple function to draw a voxel (cube, cuboid) in a specific position of specific dimensions in a 3-D plot. Transparency of the voxel can also be specified.
Many voxels can be aggregated to form a different shapes (a simple 3-D "+" is shown in the screenshot).

MATLAB release MATLAB 5.3 (R11)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (28)
08 Dec 2016 QR Fu

QR Fu (view profile)

13 Apr 2016 Andrea Libri

19 May 2015 Deepak Venkatesh Karunakaran

25 Aug 2014 Cathy

Cathy (view profile)

02 Dec 2013 adan flores

02 Dec 2013 adan flores

05 Mar 2013 Felix

Felix (view profile)

excellent and easy to use! Thanks a lot.

04 Jan 2013 Jonathan

12 Nov 2011 Grigory

14 Dec 2010 Nima Moshtagh

Nima Moshtagh (view profile)

10 Jul 2010 Alborz Geramifard

06 Oct 2009 kumar abc

i am beginner , can anyone please tell me how to run this file,
i wrote the program on a new m file and tried to run it but it did not work.

Comment only
27 Aug 2009 Petter

Petter (view profile)

alpha is not assigned a default value when the function is called with two parameters

06 Feb 2009 Chris

Chris (view profile)

Great little script. When I try to use it for large grids, it is extremely slow though. Is there something that can be done to speed it up?

21 May 2008 oodbae adriano

very useful function and efficient

23 Mar 2008 Cathy S

This is a great function. The commenting makes it easy to implement. Thank you for making my 3D voxel images better!

14 Mar 2008 Sohail iqbal

Good program, fairly simple code, I like it.

10 Mar 2008 Andres Ortiz

07 Nov 2007 s s

A nice tidy function that i found really useful for displaying range data. Thanks.

18 Sep 2006 Christian Peccei

Simple to use and works well. Great!

25 May 2006 chi ma


28 Nov 2005 Matlab isfun

09 Nov 2005 Nick Cheilakos

Excellent work.

29 Aug 2005 ahmed far&away

simple and good... saves lot of code writings..

21 Oct 2004 Jack Peach

Very simple and easy to use. Thank you!

03 Oct 2004 Captain Nemo

Found via google search for
matlab script draw cube

20 Sep 2004 Vincent Keller

Exactly what I search !

With some modification it fit with my problem. Thanks

22 Jul 2003 John Jenevall

Simple and effective! Thank you!

31 Mar 2016 1.0

License update

Contact us