| Contents | Index |
plot::MuPADCube() creates the “MuPAD® cube” as a graphical 3D primitive.
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. |
|
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. |
See Also:
plot, plot::Cone, plot::copy, plot::Cylinder, plot::Sphere
Details:
This object only exists for demonstration purposes.
plot::MuPADCube accepts the attribute Colors which defines the colors of the spheres and the cylinders between the spheres. Its value is a list of RGB or RGBa colors:
The color list may contain one to four values determining the colors of the spheres.
If a 5th color is given, it determines the color of the cylinders.
If the list contains nine colors (not less), the first and last four determine the colors of the 8 spheres. The fifth color determines the color of the cylinders.
Example 1
The MuPAD logo:
plot(plot::MuPADCube())

The MuPAD logo with strange colors:
plot(plot::MuPADCube(Colors = [RGB::Titanium $ 4, RGB::Gold],
BackgroundColor = RGB::Cobalt))

A collection of “MuPAD cubes”:
plot(plot::MuPADCube(Center = [2*k, 2*l, 2*m])
$ k = 0..1 $ l = 0..1 $ m = 0..1)

The MuPAD logo with animated size:
plot(plot::MuPADCube(1 - abs(a), [0, 0, 0], a = -1..1))



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 |