CreateComponent:
--------------------------------------------------------------------------
Create a component. This function has a built-in demo.
Available calls which return help information are:
m = CreateComponent() Returns a demo component
types = CreateComponent( 'type' ) Lists all available component types
param = CreateComponent( 'parameter', type ) Lists all parameters for type
param = CreateComponent( type ) also lists all parameters
CreateComponent( 'inputs' ), additional generic inputs
CreateComponent( 'colors' ), creates a GUI with named colors
The call to create a component is:
m = CreateComponent( 'make', type, param1, val1, ..., paramN, valN )
This function creates the data structure for the component using the parameter
pairs param1,val1 through paramN,valN. m can be input to BuildCADModel.
The common parameter structures are:
'thermal' 'mass' 'power' 'optical' 'infrared' 'aero' 'rf' 'magnetic'
'propulsion' 'graphics'
Notes:
The last action creates a GUI with available named colors.
Note that the parameter 'mass' may be a mass structure (mass, cM, inertia).
Components are all inside by default (inside=1).
The parameter 'n', number of divisions, is optional in many geometric
primitives, such as sphere and cylinder.
See also GenericProperties and DeviceProperties.
--------------------------------------------------------------------------
Form:
m = CreateComponent( action, type, varargin )
--------------------------------------------------------------------------
------
Inputs
------
action (1,:) Action 'type', 'parameters', 'make'
type (1,:) Type of component
varargin (:,:) Parameter pairs
-------
Outputs
-------
m (1,1) Component data structure
--------------------------------------------------------------------------
Children:
Common: CAD/DeviceProperties
Common: CAD/GenericProperties
Common: CAD/Inertias
Common: CAD/Volumes
Common: ComponentModels/AntennaPatch
Common: ComponentModels/Box
Common: ComponentModels/Frustrum
Common: ComponentModels/GeomPatch
Common: ComponentModels/Triangle
Common: General/DeleteCell
Common: General/MessageQueue
Common: Graphics/NewFig
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Math/Mag
CubeSat: Utilities/CubeSatModel