Main Content

Language

Language to use in generated code

Description

App Configuration Pane: Output

Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig

Language to use in generated code, specified as 'C' or 'C++'.

When using GPU Coder™, the code generator sets TargetLang to C++.

Dependencies

If DeepLearningConfig is set, codegen sets TargetLang to C++.

Settings

C

This setting is the default setting.

Specifies C language.

C++

Specifies C++ language.

Programmatic Use

Property: TargetLang
Values: 'C' | 'C++'
Default: 'C'

Version History

Introduced in R2011a