Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

getSourceFiles - Source files from model's build information

Syntax

srcfiles=getSourceFiles(buildinfo, concatenatePaths, replaceMatlabroot, includeGroups, excludeGroups)

includeGroups and excludeGroups are optional.

Arguments

buildinfo

Build information returned by RTW.BuildInfo.

concatenatePaths

The logical value true or false.

If You Specify...The Function...
trueConcatenates and returns each filename with its corresponding path.
falseReturns only filenames.

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 folder.
falseDoes not replace the token $(MATLAB_ROOT).

includeGroups (optional)

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

excludeGroups (optional)

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

Returns

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

Description

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

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

Examples

See Also

addSourceFiles, getIncludeFiles, getIncludePaths, getSourcePaths
Customizing Post Code Generation Build Processing

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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