AnimateCube:

Path: Common/Graphics

% Draw a cube given its dimensions. 

 The color scheme for the x/y/z faces is blue, green, red, following the
 default MATLAB color order. 
--------------------------------------------------------------------------
   Form:
         AnimateCube( action, modifier, x )
         AnimateCube( 'run', dim, q )
   tag = AnimateCube( 'initialize', dim )
         AnimateCube( 'update', tag, q )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action      (1,:) 'initialize', 'update', 'close'
   modifier    (1,:) [x,y,z] dimensions on initialize or tag otherwise
   x           (4,1) Quaternion  (used for update/run only), or (5,1) if a
                     time is appended.

   -------
   Outputs
   -------
   tag         (1,1) Returned on initialize

--------------------------------------------------------------------------
   See also AddAxes.
--------------------------------------------------------------------------

Children:

Common: General/CloseFigure
Common: Graphics/AddView
Common: Quaternion/QForm

Back to the Common Module page