| 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 |
findIncludeFiles(buildinfo, extPatterns)
extPatterns is optional.
Build information returned by RTW.BuildInfo.
A cell array of character arrays that specify patterns of file name extensions for which the function is to search. Each pattern
Must start with *.
Can include any combination of alphanumeric and underscore (_) characters
The default pattern is *.h.
Examples of valid patterns include
| *.h |
| *.hpp |
| *.x* |
The findIncludeFiles function
Searches for include files, based on specified file name extension patterns, in all source and include paths recorded in a model's build information object
Adds the files found, along with their full paths, to the build information object
Deletes duplicate entries
Find all include files with filename extension .h that are in build information object myModelBuildInfo, and add the full paths for any files found to the object.
myModelBuildInfo = RTW.BuildInfo;
addSourcePaths(myModelBuildInfo, {fullfile(pwd,...
'mycustomheaders')}, 'myheaders');
findIncludeFiles(myModelBuildInfo);
headerfiles = getIncludeFiles(myModelBuildInfo, true, false);
headerfiles
headerfiles =
'W:\work\mycustomheaders\myheader.h'Programming a Post Code Generation Command
![]() | emlc | getCompileFlags | ![]() |

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 |