getSourcePaths - Source paths from model's build information

Syntax

files=getSourcePaths(buildinfo, replaceMatlabroot, includeGroups, excludeGroups)

Arguments

buildinfo

Build information returned by RTW.BuildInfo.

replaceMatlabroot

The logical value true or false.

If You Specify...The Function...
trueReplaces the token $(MATLAB_ROOT) with the absolute path string for your MATLAB® installation directory.
falseDoes not replace the token $(MATLAB_ROOT).

includeGroups (optional)

A character array or cell array of character arrays that specifies groups of source paths you want the function to return.

excludeGroups (optional)

A character array or cell array of character arrays that specifies groups of source paths you do not want the function to return.

Returns

Paths of source files stored in the model's build information.

Description

The getSourcePaths function returns the names of source file paths stored in the model's build information. Use the replaceMatlabroot argument to control whether the function includes your MATLAB root definition in the output it returns. Using optional includeGroups and excludeGroups arguments, you can selectively include or exclude groups of source file paths the function returns.

If you choose to specify excludeGroups and omit includeGroups, specify a null string ('') for includeGroups.

Examples

See Also

getIncludeFiles, getIncludePaths, getSourceFiles
Programming a Post Code Generation Command

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS