Main Content

compile

Class: simscape.multibody.Multibody
Package: simscape.multibody

Compile Multibody object

Description

cmb = compile(mb) compiles the simscape.multibody.Multibody object, mb, and returns a simscape.multibody.CompiledMultibody object if the compilation is successful. The compilation process evaluates all parts of the mb object and checks for semantic correctness.

To perform analyses, such as computing the position of a joint primitive, for a multibody system, the corresponding Multibody object of the system needs to be successfully compiled.

Input Arguments

expand all

Multibody system, specified as a simscape.multibody.Multibody object.

Output Arguments

expand all

Compiled multibody system, returned as a simscape.multibody.CompiledMultibody object that you can use for many analyses, such as visualize and transformation. See simscape.multibody.CompiledMultibody for more information.

Attributes

Accesspublic

To learn about attributes of methods, see Method Attributes.

Version History

Introduced in R2022a