Mixing M-Files and C or C++
4-39
Figure 4-3: Mixing M-Files and C Code to Form a Stand-Alone Application
mrank.m
mcc -t -W lib:Pkg -T
link:exe mrank mrankp.c
mrank.c, Pkg.c, Pkg.h
C Compiler
Object File
C Compiler
Object File
Linker
Stand-Alone C
Application
mrankp.c
MATLAB M-File Math Library
MATLAB Math Built-In Library
MATLAB API Library
MATLAB Utility Library
ANSI C Library MATLAB C/C++ Graphics Library
• Shaded blocks are user-written code.
• Shadowed blocks are tools.
• Unshaded blocks are MATLAB
Compiler-generated code.
• Dotted blocks are C/C++
compiler-generated code.
mbuild does
this part.
Comments to this Manuals