Main Content

Simulink.SFunctionBuilder.getSFunctionName

Get name of S-function generated by S-Function Builder block

Since R2022a

    Description

    SFunName = Simulink.SFunctionBuilder.getSFunctionName(blk) returns the name for the S-function generated by the S-Function Builder block blk. 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.

    Output Arguments

    collapse all

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

    Data Types: char | string

    Version History

    Introduced in R2022a