Main Content

getBuildArgs

Get build arguments from model build information

Description

example

[identifiers,values] = getBuildArgs(buildinfo,includeGroupIDs,excludeGroupIDs) returns build argument identifiers and values from model 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 model, 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

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

Introduced in R2014a