Code covered by the BSD License  

Highlights from
PLOTCUBE

5.0

5.0 | 3 ratings Rate this file 55 Downloads (last 30 days) File Size: 1.74 KB File ID: #15161
image thumbnail

PLOTCUBE

by Thomas Montagnon

 

31 May 2007 (Updated 01 Jun 2007)

Plot a 3D-cube

| Watch this File

File Information
Description

PLOTCUBE - Display a 3D-cube in the current axes

  PLOTCUBE(EDGES,ORIGIN,ALPHA,COLOR) displays a 3D-cube in the current axes
  with the following properties:
  * EDGES : 3-elements vector that defines the length of cube edges
  * ORIGIN: 3-elements vector that defines the start point of the cube
  * ALPHA : scalar that defines the transparency of the cube faces (from 0
            to 1)
  * COLOR : 3-elements vector that defines the faces color of the cube

Example:
  >> plotcube([5 5 5],[ 2 2 2],.8,[1 0 0]);
  >> plotcube([5 5 5],[10 10 10],.8,[0 1 0]);
  >> plotcube([5 5 5],[20 20 20],.8,[0 0 1]);

Acknowledgements
This submission has inspired the following:
rppd
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
12 Sep 2011 Vicente  
15 Feb 2012 Panintorn

It's very nice

24 Feb 2012 Ahmed

thanks really helpful

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Thomas Montagnon 22 Oct 2008 09:14:05
plotting Thomas Montagnon 22 Oct 2008 09:14:05
plot Thomas Montagnon 22 Oct 2008 09:14:05
cube Thomas Montagnon 22 Oct 2008 09:14:05
3d Thomas Montagnon 22 Oct 2008 09:14:05
graphics Thomas Montagnon 22 Oct 2008 09:14:05
specialized plot Thomas Montagnon 22 Oct 2008 09:14:05
specialized graph Thomas Montagnon 22 Oct 2008 09:14:05
cube Saleem Hamid 05 Mar 2009 15:46:52
cube CB BISSUEL 03 Mar 2010 11:55:51
3d Stephan Wegerich 11 Jan 2012 10:40:01
cube Stephan Wegerich 11 Jan 2012 10:40:03
specialized graph durg ch 14 Feb 2012 08:09:54
specialized plot durg ch 14 Feb 2012 08:09:55

Contact us at files@mathworks.com