MATLAB COMPILER RELEASE NOTES Guida Utente Pagina 93

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 92
Building Stand-Alone Applications on PCs
4-23
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
environmentvariable. On Windows 95, setthevalueinyour 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
Verifying the MATLAB Compiler
There is MATLAB code for an example, hello.m,includedinthe
<matlab>\extern\examples\compiler directory. To verify that the MATLAB
Compiler can generate stand-alone applications on your system, type the
following at the MATLAB prompt.
mcc -m hello.m
This command should complete without errors. To run the stand-alone
application,
hello, invoke it as you would any other W indows console
application, by typing it s name on the MS-DOS command line. The applicatio n
should run and display the message
Hello, World.
When you execute the
mcc command to link files and libraries, mcc actually
calls the
mbuild script to perform the functions.
Vedere la pagina 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 263 264

Commenti su questo manuale

Nessun commento