MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Uživatelská příručka Strana 116

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 274
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 115
4 Stand-Alone Applications
4-40
Alternative Ways of Compiling M-Files
The previous section showed how to compile main.m and mrank.m separately.
This section explores two other ways of compiling M-files.
Note These two alternative ways of compiling M-files apply to C++ as well as
to C code; the only difference is that you add -L cpp for C++.
Compiling MATLAB Provided M-Files Separately
The M-file mrank.m contains a call to rank. The MATLAB Compiler translates
the call to
rank into a C call to mlfRank. The mlfRank routine is part of the
MATLAB M-File Math Library. The
mlfRank routine behaves in stand-alone
applications exactly as the
rank function behaves in the MATLAB interpreter.
However, if this default behavior is not desirable, you can create your own
version of
rank or mlfRank.
One way to create a new version of
rank is to copy the MATLAB source code for
rank and then to edit this copy. MATLAB implements rank as the M-file
rank.m rather than as a built-in command. To see the MATLAB code for
rank.m, enter
type rank
Copy this code into a file named rank.m located in the same directory as
mrank.m and main.m. Then, modify your version of rank.m. After completing the
modifications, compile
rank.m:
mcc -t rank
Compiling rank.m generates file rank.c, which contains a function named
mlfRank. Then, compile the other M-files composing the stand-alone
application.
mcc -t main.m (produces main.c)
mcc -t mrank.m (produces mrank.c)
mcc -W main main mrank rank.m (produces main_main.c)
To compile and link all four C source code files (
main.c, rank.c, mrank.c, and
main_main.c) into a stand-alone application, use
Zobrazit stránku 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 273 274

Komentáře k této Příručce

Žádné komentáře

Xerox DocuColor 250 manuals

Owner’s manuals and user’s guides for Printers Xerox DocuColor 250.
We providing 1 pdf manuals Xerox DocuColor 250 for download free by document types: User Manual






More products and manuals for Printers Xerox

Models Document Type
DocuColor 2060 NPS User Manual   Xerox DocuColor 2060 NPS User Manual, 38 pages
701P35371 User Manual   Xerox 701P35371 User Manual, 86 pages
DocuColor 5000AP User Manual   Xerox DocuColor 5000AP User Manual, 20 pages
CopyCentre/WorkCentre 118 MO3101Y6-1 User Manual   Xerox CopyCentre/WorkCentre 118 MO3101Y6-1 User Manual, 4 pages
DCC360 User Manual   Xerox DCC360 User Manual, 7 pages
3535 User Manual   Xerox 3535 User Manual, 268 pages
Phaser laser printer 4500 User Manual   Xerox Phaser laser printer 4500 User Manual, 10 pages
96/4635/180 IPS User Manual   Xerox 96/4635/180 IPS User Manual, 51 pages
3100MFP User Manual   Xerox 3100MFP User Manual, 12 pages
6360 User Manual   Xerox 6360 User Manual, 4 pages
SquareFold 610P729932 User Manual   Xerox SquareFold 610P729932 User Manual, 2 pages
Phaser 6180 User Manual   Xerox Phaser 6180 User Manual, 4 pages
DC98CC09 User Manual   Xerox DC98CC09 User Manual, 4 pages
XT3008EN0-2 User Manual   Xerox XT3008EN0-2 User Manual, 30 pages
2000 User Manual   Xerox 2000 User Manual, 2 pages
WorkCentre XD130DF User Manual   Xerox WorkCentre XD130DF User Manual, 1 pages
F12 User Manual   Xerox F12 User Manual, 4 pages
785 User Manual   Xerox 785 User Manual, 368 pages
DC220 User Manual   Xerox DC220 User Manual, 2 pages
8142 User Manual   Xerox 8142 User Manual, 1 pages