User`s guide

mcc
7-28
command line options. Both the mccstartup file and the -B option are
processed the same way.
Note If you need to change the meaning of a macro to satisfy your individual
requirements, you should create or modify your
mccstartup file in the
preferences directory. Changing the file
macro_option_x in the bundles
directory changes the option for all Compiler users. To see the name of your
preferences directory, type prefdir at the command prompt.
Setting a MATLAB Path in the Stand-Alone MATLAB Compiler
Unlike the MATLAB version of the Compiler, which inherits a MATLAB path
from MATLAB, the stand-alone version has no initial path. If you want to set
up a default path, you can do so by making an
mccpath file. To do this:
1 Create a text file containing the text -I <your_directory_here> for each
directory you want on the default path, and name this file
mccpath.
(Alternately, you can call the
mccsavepath M-function from MATLAB to
create an
mccpath file.)
2 Place this file in your preferences directory. To do so, run the following
commands at the MATLAB prompt:
cd(prefdir); mccsavepath;
These commands save your current MATLAB path to a file named mccpath
in your
user preferences directory. (Type prefdir to see the name of your
preferences directory.)
The stand-alone version of the MATLAB Compiler searches for the
mccpath file
in your current directory and then your preferences directory. If it finds an
mccpath file, it processes the directories specified within the file and uses them
to initialize its search path. Note that you may still use the
-I option on the
command line or in
mccstartup files to add other directories to the search path.
Directories specified this way are searched after those directories specified in
the
mccpath file.