Main Content

componentData

Component data

Since R2025a

    Description

    compdata = componentData(partobj) returns the component object of a part object.

    compdata = componentData(partobj,'compName','cname') returns the component data of a part object for a specified component name.

    Input Arguments

    collapse all

    The part object specified as a string.

    Example: compdata = componentData(partobjname)

    Data Types: string

    Optional component name of the part object specified as a string. If compName is not specified then data will be returned for all components of the part.

    Example: compdata = componentData(partobjname,'U1') returns component data of part with compName specified asU1.

    Data Types: string

    Output Arguments

    collapse all

    Returns the component object of a part object.

    Version History

    Introduced in R2025a