Skip to Main Content Skip to Search
Product Documentation

plot::MuPADCube“the cube” (the MuPAD logo)

plot::MuPADCube() creates the “MuPAD® cube” as a graphical 3D primitive.

→ Examples

Call:

plot::MuPADCube(<r>, <[cx, cy, cz]>, <a = amin .. amax>, Options)

Parameters:

r

the size of the object (the radius of the surrounding sphere): a real numerical value or an arithmetical expression of the animation parameter a. The default value of the radius is 1
r is equivalent to the attribute Radius.

cx, cy, cz

the coordinates of the center: real numerical values or arithmetical expressions of the animation parameter a. By default, a cube centered at the origin is created. 
cx, cy, cz are equivalent to the attributes CenterX, CenterY, CenterZ.

See Also:

plot, plot::Cone, plot::copy, plot::Cylinder, plot::Sphere

Details:

Example 1

The MuPAD logo:

plot(plot::MuPADCube())

MuPAD graphics

The MuPAD logo with strange colors:

plot(plot::MuPADCube(Colors = [RGB::Titanium $ 4, RGB::Gold],
                     BackgroundColor = RGB::Cobalt))

MuPAD graphics

A collection of “MuPAD cubes”:

plot(plot::MuPADCube(Center = [2*k, 2*l, 2*m])
                     $ k = 0..1 $ l = 0..1 $ m = 0..1)

MuPAD graphics

The MuPAD logo with animated size:

plot(plot::MuPADCube(1 - abs(a), [0, 0, 0], a = -1..1))

MuPAD graphicsimage

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS