Main Content

findBuildArg

Find a specific build argument in build information

Description

example

[identifier,value] = findBuildArg(buildinfo,buildArgName) searches for a build argument from the build information.

If the build argument is present in the build information, the function returns the name and value.

Examples

collapse all

Find a build argument and its value stored in build information myBuildInfo. Then, view the argument identifier and value.

load buildInfo.mat
myBuildInfo = buildInfo;
myBuildArgExtmodeStaticAlloc = 'EXTMODE_STATIC_ALLOC';
[buildArgId buildArgValue] = findBuildArg(buildInfo, ...
   myBuildArgExtmodeStaticAlloc);
>> buildArgId

buildArgId =

    'EXTMODE_STATIC_ALLOC'

>> buildArgValue

buildArgValue =

    '0'

Input Arguments

collapse all

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

To get the build argument identifiers from the build information, use the getBuildArgs (Simulink Coder) function.

Output Arguments

collapse all

Name of the build argument.

Value of the build argument.

Version History

Introduced in R2014a