Main Content

Build S-function and generate MEX file for S-Function Builder block

Since R2022a

    Description builds the S-function and generates the MEX file for the S-Function Builder block blk.

    To build the S-function without generating the MEX file, use the Simulink.SFunctionBuilder.generateCodeOnly function.

    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.


    • 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