| MATLAB C/C++ Graphics Library | ![]() |
Running the MATLAB Compiler Outside MATLAB
You can run the MATLAB Compiler outside the MATLAB environment, invoking it at the system prompt. If you do, you must use the -I option on the Compiler command line to specify the locations of the M-files that your application depends on. For example, the Lorenz application uses functions in the graph2d, graphics, demos, and graph3d subdirectories of the <MATLAB>/toolbox/matlab/ directory. When you run the Compiler from within MATLAB, it can locate these files by referencing the MATLAB path.
A convenient way to provide the Compiler with this path information is to start MATLAB and run the mccsavepath command. This command creates a path information file, named mccpath, in your current directory. When you run the Compiler outside the MATLAB environment, it automatically looks in your local directory for this path information file.
| Building Graphics Applications on a UNIX System | Compiling and Linking Without mbuild | ![]() |