Main Content

IsAdapterComponent

Determine component is adapter

    Description

    flag = IsAdapterComponent(compObj) determines whether or not the component is an Adapter block.

    example

    Examples

    collapse all

    Determine whether or not the component is an Adapter block.

    This component is not an Adapter block.

    model = systemcomposer.createModel("archModel");
    systemcomposer.openModel("archModel");
    rootArch = get(model,"Architecture");
    newComponent = addComponent(rootArch,"newComponent");
    flag = IsAdapterComponent(newComponent)
    flag =
    
      logical
    
       0

    Input Arguments

    collapse all

    Component, specified as a systemcomposer.arch.Component object.

    Output Arguments

    collapse all

    Whether component is reference, returned as 1 (true) or 0 (false).

    Data Types: logical

    More About

    collapse all

    Version History

    Introduced in R2019b