Simulink.SFunctionBuilder.setSFunctionName - Set name of S-function for S-Function Builder block - MATLAB (original) (raw)
Main Content
Set name of S-function for S-Function Builder block
Since R2022a
Syntax
Description
Simulink.SFunctionBuilder.setSFunctionName([blk](#mw%5F6a0b1f5e-e89d-49eb-aeea-2034e13a24bc%5Fsep%5Fmw%5Fa03c49e9-1065-4caf-86d4-a666e77c0288),[SFunName](#mw%5Fe2145849-e758-49b0-aff2-c491ecd4fbd7))
sets the name of the S-function built by the S-Function Builder blockblk
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
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