Main Content

addterms

R2026b

Add Terminator and Ground blocks to unconnected ports

    Description

    addterms(sys) adds Terminator and Ground blocks to the unconnected ports in the specified model. The function does not add blocks to any unconnected signal lines, only to unconnected ports.

    example

    Examples

    collapse all

    Suppose you want to test an unfinished model named myModel that has blocks with unconnected output ports.

    To avoid getting warnings when you run the model, add terminator blocks to all the unconnected output ports in the model.

    addterms("myModel");

    Input Arguments

    collapse all

    Model to which you want to add Terminator and Ground blocks, specified as a handle or name. Format the handle as a scalar. Format the name as a string or character vector.

    For information about getting handles, see Get Handles and Paths.

    Example: "myModel"

    Data Types: double | string | character vector

    Version History

    Introduced before R2006a