addComponent
Class: simscape.multibody.Multibody
Namespace: simscape.multibody
Description
addComponent(
adds a component object, mb,componentName,C)C, to the top level of the simscape.multibody.Multibody object, mb. Use the
componentName argument to specify the name of the new component
object in the mb object.
Note that the addComponent method adds only a copy of a component
object to a Multibody object, and any subsequent changes to the original
component object do not affect the copy. Therefore, you must completely configure a
component object before adding the object to a Multibody object.
By default, the newly added component object does not connect to other objects in the
Multibody object. See addConnector, connect, and connectVia to learn
how to connect component objects in a Multibody object.
Input Arguments
Version History
Introduced in R2022a