| MATLAB Compiler | ![]() |
Verifying mbuild
There is C source code for an example, ex1.c, included in the <matlab>\extern\examples\cmath directory, where <matlab> represents the top-level directory where MATLAB is installed on your system. To verify that mbuild is properly configured on your system to create stand-alone applications, enter at the MATLAB prompt
mbuild ex1.c
This creates the file called ex1.exe. Stand-alone applications created on Windows 95/98/2000 or Windows NT always have the extension exe. The created application is a 32-bit MS-DOS console application.
Shared Libraries
All the libraries (WIN32 Dynamic Link Libraries, or DLLs) for MATLAB, the MATLAB Compiler, and the MATLAB Math Library are in the directory
<matlab>\bin\win32
The .DEF files for the Microsoft and Borland compilers are in the <matlab>\extern\include directory. All of the relevant libraries for building stand-alone applications are WIN32 Dynamic Link Libraries. Before running a stand-alone application, you must ensure that the directory containing the DLLs is on your path. The directory must be on your operating system $PATH environment variable. On Windows 95, set the value in your AUTOEXEC.BAT file; on Windows NT, use the Control Panel to set it.
Running Your Application
You can now run your stand-alone application by launching it from the DOS command line. For example,
ex1
ans =
1 3 5
2 4 6
ans =
1.0000 + 7.0000i 4.0000 +10.0000i
2.0000 + 8.0000i 5.0000 +11.0000i
3.0000 + 9.0000i 6.0000 +12.0000i
| Preparing to Compile | Verifying the MATLAB Compiler | ![]() |