Simulink.SFunctionBuilder.setTargetLanguage - Set language for S-function generated using S-Function Builder

  block - MATLAB ([original](https://in.mathworks.com/help/simulink/slref/simulink.sfunctionbuilder.settargetlanguage.html)) ([raw](?raw))

Main Content

Set language for S-function generated using S-Function Builder block

Since R2022a

Syntax

Description

Simulink.SFunctionBuilder.setTargetLanguage([blk](#mw%5Fa40dfb94-8b73-41a3-9e8c-20da4314db69%5Fsep%5Fmw%5Fa03c49e9-1065-4caf-86d4-a666e77c0288),[lang](#mw%5F285e9d11-232f-48b6-a70b-ce9ec555ab88)) sets the target language for the S-function generated by the S-Function Builder block blk to the specified languagelang.

To specify build options such as whether the MEX file includes debugging information, use the Simulink.SFunctionBuilder.setBuildOptions 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.

Tips

S-function language, specified as one of these options:

Data Types: char | string

Version History

Introduced in R2022a