MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente Pagina 234

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 233
mcc
7-48
Note Multiple -M options do not accumulate; only the last -M option is used.
-z <path> (Specifying Library Paths). Specify the path to use for library and include
files. This option uses the specified path for compiler libraries instead of the
path returned by
matlabroot.
Examples Make a C translation and a MEX-file for myfun.m:
mcc -x myfun
Make a C translation and a stand-alone executable for myfun.m:
mcc -m myfun
Make a C++ translation and a stand-alone executable for myfun.m:
mcc -p myfun
Make a C translation and a Simulink S-function for myfun.m (using
dynamically sized inputs and outputs):
mcc -S myfun
Make a C translation and a Simulink S-function for myfun.m (explicitly calling
for one input and two outputs):
mcc -S -u 1 -y 2 myfun
Make a C translation and stand-alone executable for myfun.m. Look for
myfun.m in the /files/source directory, and put the resulting C files and
executable in the
/files/target directory:
mcc -m -I /files/source -d /files/target myfun
Make a C translation and a MEX-file for myfun.m. Also translate and include
all M-functions called directly or indirectly by
myfun.m. Incorporate the full
text of the original M-files into their corresponding C files as C comments:
mcc -x -h -A annotation:all myfun
Make a generic C translation of myfun.m:
Vedere la pagina 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 273 274

Commenti su questo manuale

Nessun commento