Generate example main - Example C/C++ main file generation - MATLAB (original) (raw)

Main Content

Example C/C++ main file generation

Description

Settings

Generate, but do not compile, an example main function

This value is the default value.

The code generator generates an example C/C++ main function but does not compile it.

Do not generate an example main function

The code generator does not generate an example C/C++ main function.

Generate and compile an example main function

The code generator generates an example C/C++ main function and compiles it to create a test executable. This executable does not return output.

If the GenCodeOnly parameter istrue, the code generator does not compile the C/C++ main function.

Programmatic Use

**Property:**GenerateExampleMain
Values: 'GenerateCodeOnly' |'DoNotGenerate' 'GenerateCodeAndCompile'
Default:'GenerateCodeOnly'

Version History

Introduced in R2015a