Simulink.SFunctionBuilder.build - Build S-function and generate MEX file for S-Function Builder block - MATLAB (original) (raw)
Main Content
Build S-function and generate MEX file for S-Function Builder block
Since R2022a
Syntax
Description
Simulink.SFunctionBuilder.build([blk](#mw%5Fdcbfda2d-b0d2-4ebf-9eec-5c070436426a%5Fsep%5Fmw%5Fa03c49e9-1065-4caf-86d4-a666e77c0288))
builds the S-function and generates the MEX file for the S-Function Builder blockblk
.
To build the S-function without generating the MEX file, use the Simulink.SFunctionBuilder.generateCodeOnly function.
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.
Version History
Introduced in R2022a