User`s guide
mcc
7-33
mcc searchesfor the mccstartup fileinthesetwodirectoriesintheorder shown
above. If it finds an
mccstartup file, itreads it and processes the optionswithin
the file as if they had appeared on the
mcc command line before any actual
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
preferen ces 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.Todothis:
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 pref erences dire ctory. 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.)
Thestand-aloneversionofthe MATLABCompiler searchesforthe
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
commandlineorin
mccstartup files to add other directories to thesearch path.
Directories specified this way are searched after those directories specified in
the
mccpath file.