Stateflow User's Guide Previous page   Next Page

Specifying Relative Paths for Custom Code

You specify custom code options for Stateflow targets in Specifying Custom Code Options for Stateflow Targets. If you specify paths and files with absolute paths and later move them, you have to change these paths to point to new locations. Because of this, it is recommended that you use relative paths for custom code options that specify paths or files.

If the entered files or paths are specified with a relative path, Stateflow searches paths relative to the following directories for them:

You can use the forward slash (/) or backward slash (\) as a file separator regardless of whether you are on a UNIX or PC platform. The makefile generator parses these strings and returns the path names with the correct platform-specific file separators.

Paths can also contain $...$ enclosed tokens that are evaluated in the MATLAB workspace. For example, the entry $mydir1$\dir1, where mydir1 is a string variable defined in the MATLAB workspace as 'd:\work\source\module1', declares the directory d:\work\source\module1\dir1 as a custom include path.


Previous page  Specifying Custom Code Options for Stateflow Targets Including Custom C++ Code Next page

© 1994-2005 The MathWorks, Inc.