| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
files=getIncludePaths(buildinfo, replaceMatlabroot, includeGroups, excludeGroups)
includeGroups and excludeGroups are optional.
Build information returned by RTW.BuildInfo.
The logical value true or false.
| If You Specify... | The Function... |
|---|---|
| true | Replaces the token $(MATLAB_ROOT) with the absolute path string for your MATLAB installation directory. |
| false | Does not replace the token $(MATLAB_ROOT). |
A character array or cell array of character arrays that specifies groups of include paths you want the function to return.
A character array or cell array of character arrays that specifies groups of include paths you do not want the function to return.
Paths of include files stored in the model's build information.
The getIncludePaths function returns the names of include 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 include file paths the function returns.
If you choose to specify excludeGroups and omit includeGroups, specify a null string ('') for includeGroups.
Get all include paths stored in build information myModelBuildInfo.
myModelBuildInfo = RTW.BuildInfo;
addIncludePaths(myModelBuildInfo, {'/etc/proj/etclib'...
'/etcproj/etc/etc_build' '/common/lib'},...
{'etc' 'etc' 'shared'});
incpaths=getIncludePaths(myModelBuildInfo, false);
incpaths
incpaths =
'\etc\proj\etclib' [1x22 char] '\common\lib'Get the paths in group shared that are stored in build information myModelBuildInfo.
myModelBuildInfo = RTW.BuildInfo;
addIncludePaths(myModelBuildInfo, {'/etc/proj/etclib'...
'/etcproj/etc/etc_build' '/common/lib'},...
{'etc' 'etc' 'shared'});
incpaths=getIncludePaths(myModelBuildInfo, false, 'shared');
incpaths
incpaths =
'\common\lib''getIncludeFiles, getSourceFiles, getSourcePaths
Programming a Post Code Generation Command
![]() | getIncludeFiles | getLinkFlags | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |