MATLAB Compiler    

System Configuration for MEX-Files

This section outlines the steps necessary to configure your system to create MEX-files.

The sequence of steps to install and configure the MATLAB Compiler so that it can generate MEX-files is

  1. Install the MATLAB Compiler.
  2. Install an ANSI C or C++ compiler, if you don't already have one installed.

  1. Verify that mex can generate MEX-files.
  2. Verify that the MATLAB Compiler can generate MEX-files from the MATLAB command line and from the UNIX or DOS command line.

Figure 2-1, MATLAB Compiler Installation Sequence for Creating MEX-Files, shows the Compiler installation sequence for creating MEX-files on both platforms. The sections following the flowchart provide more specific details for the individual platforms. Additional steps may be necessary if you plan to create stand-alone applications or libraries, however, you still must perform the steps given in this chapter first. Stand-Alone Applications provides the details about the additional installation and configuration steps necessary for creating stand-alone applications and libraries.

Figure 2-1: MATLAB Compiler Installation Sequence for Creating MEX-Files


  Installation and Configuration UNIX Workstation