See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | |
| | | |
| | | Building Binary MEX-Files | | |
| | | |
| | | Note The - setup option creates a user-specific matlab directory in your individual home directory and copies the appropriate options file to the directory. (If the directory already exists, a new one is not created.) This matlab directory is used for your individual options files only; each user can have his or her own default options files (other MATLAB products may place options files in this directory). Do not confuse these user-specific matlab directories with the system matlab directory, where MATLAB is installed. To see the name of this directory on your machine, use the MATLAB command prefdir. | | |
| | | |
| | | Using the setup option resets your default compiler so that the new compiler is used every time you use the mex script. | | |
| | | |
| | | Testing Your Configuration on Windows® Platforms Before you can create binary MEX-files on the Windows platform, you must configure the default options file, mexopts.bat, for your compiler. The -setup option provides an easy way for you to configure the default options file. To configure or change the options file at anytime, run: mex -setup from either the MATLAB or DOS command prompt. | | |
| | | |
| | | Lcc Compiler MATLAB includes a C compiler called Lcc that you can use to create C MEX-files. Help on using the Lcc compiler is available in a help file that ships with MATLAB. To view this file, type in the MATLAB command window: !matlabroot\sys\lcc\bin\wedit.hlp replacing the term matlabroot with the path to the directory in which MATLAB is installed on your system. (Type matlabroot in the Command Window to get the path for this directory.) | | |
| | | |
| | | 3-25 | | |
| | | |
| | | | | | | | | | | | | |