MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente Pagina 98

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 97
4 Stand-Alone Applications
4-22
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 98/2000/Me 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 NT, use the Control Panel to set the value.
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 =
Vedere la pagina 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 273 274

Commenti su questo manuale

Nessun commento