Create Simulink model from
creates a Simulink® model named
ModelName from the
op argument is a
simscape.op.OperatingPoint object that specifies the states of some joint
primitives in the
mb object. The
adds a Solver Configuration block to the
created Simulink model by default.
The method converts the component objects of the
Multibody object to
mechanical parts or subsystems in the created Simulink model:
Multibodyobjects at the top level hierarchy become the subsystems.
RigidBodyobjects at the top level hierarchy become the subsystems constructed by rigidly connected parts.
Other component objects, such as
simscape.multibody.Solid, and objects of subclasses of the
simscape.multibody.Jointclass become the corresponding Simulink blocks.
Connectors become the ports on the subsystems, and connections between component objects become lines in the block diagram of the Simulink model.
mb — Multibody system
Multibody system, specified as a
op — Operating point
Operating point, specified as the
simscape.op.OperatingPoint object. The object targets the positions and
velocities of some joint primitives in the
simscape.multibody.Multibody object. If you use an empty
OperatingPoint object, the
creates a Simulink model with no joint primitive targets.
ModelName — Name of Simulink model
string scalar | character vector
Name of the Simulink model, specified as a string scalar or character vector. If you
do not specify the model name, the name of the model is
N is an unique identifying
To learn about attributes of methods, see Method Attributes.
Introduced in R2022a