External Interfaces | ![]() ![]() |
Example -- Building an Engine Application on Windows
MATLAB provides a demonstration program written in the C language that you can use to verify the build process on your computer. The demo file for Windows systems is engwindemo.c
.
Copy the C language MEX-file engwindemo.c
to your current working directory:
Look in the \bin\win32\mexopts
directory for the appropriate options file for the Lcc compiler. Use the commands shown here to build the executable file using this compiler:
optsfile = [matlabroot '\bin\win32\mexopts\lccengmatopts.bat']; mex('-f', optsfile, 'engwindemo.c');
Verify that the build worked by looking in your current working directory for the file engwindemo.exe
:
To run the demo from the MATLAB Command Window, first make sure your current working directory is set to the one in which you built the executable file, and then type
![]() | Example -- Building an Engine Application on UNIX | Masking Floating-Point Exceptions | ![]() |
© 1994-2005 The MathWorks, Inc.