coder.allowpcode
Namespace: coder
Control code generation from P-code files
Description
coder.allowpcode('plain')
allows you to generate P-code files that
you can then compile into optimized MEX functions or embeddable C/C++ code. This function
does not obfuscate the generated MEX functions or embeddable C/C++ code.
With this capability, you can distribute algorithms as P-code files that provide code generation optimizations.
Call this function in the top-level function before control-flow statements, such as
if
, while
, switch
, and function
calls.
MATLAB® functions can call P-code. When the .m
and
.p
versions of a file exist in the same folder, the P-code file takes
precedence.
coder.allowpcode
is ignored outside of code generation.
Examples
Extended Capabilities
Version History
Introduced in R2011a