Main Content

componentPaths

Class: simscape.multibody.Multibody
Namespace: simscape.multibody

Return paths of component objects in Multibody object

Since R2022a

Description

paths = componentPaths(mb) returns the paths of the component objects in the entire hierarchy of the simscape.multibody.Multibody object, mb.

Input Arguments

expand all

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

Output Arguments

expand all

Paths of the component objects in the entire hierarchy of the Multibody object, returned as a string array.

Attributes

Accesspublic

To learn about attributes of methods, see Method Attributes.

Alternatives

You can use the ComponentNames property of the simscape.multibody.Multibody object to return the names of component objects at the top level of the Multibody object. The returned value is a string array.

Version History

Introduced in R2022a