Main Content

Simulink.SFunctionBuilder.setSFunctionName

Set name of S-function for S-Function Builder block

    Description

    Simulink.SFunctionBuilder.setSFunctionName(blk,SFunName) sets the name of the S-function built by the S-Function Builder block blk to the name specified by SFunName. The S-function name is used as a prefix for all wrapper functions built by the S-Function Builder block.

    Input Arguments

    collapse all

    S-Function Builder block, specified as a block handle or as a string or a character vector that defines the block path.

    Tips

    • To get the block handle for a block in your model, use the getSimulinkBlockHandle function.

    • To get the block handle for the most recently selected or added block, use the gcbh function.

    S-function name, specified as a string or a character vector.

    Example: "mySFunction"

    Data Types: char | string

    Version History

    Introduced in R2022a