Main Content

getBuildArgs

Get build arguments from build information

Description

example

[identifiers,values] = getBuildArgs(buildinfo,includeGroupIDs,excludeGroupIDs) returns build argument identifiers and values from build information.

The function requires the buildinfo, identifiers, and values arguments. You can use optional includeGroupIDs and excludeGroupIDs arguments. These optional arguments let you include or exclude groups selectively from the build arguments returned by the function.

If you choose to specify excludeGroupIDs and omit includeGroupIDs, specify a null character vector ('') for includeGroupIDs.

Examples

collapse all

After you build a project, the build information is available in the buildInfo.mat file. Retrieve the build arguments from the build information object.

load buildInfo.mat
[buildArgIds,buildArgValues] = getBuildArgs(buildInfo);

To get the value of a single build argument from the build information, you can use the findBuildArg function.

To view the build argument identifiers, enter:

buildArgIds

To view the build argument values, enter:

buildArgValues

Input Arguments

collapse all

RTW.BuildInfo object that contains information for compiling and linking generated code.

To use the includeGroupIDs argument, view available build argument identifier groups by using myGroups = getGroups(buildInfo).

Example: ''

To use the excludeGroupIDs argument, view available build argument identifier groups by using myGroups = getGroups(buildInfo).

Example: ''

Output Arguments

collapse all

Names of the build arguments.

Values of the build arguments.

Version History

Introduced in R2014a