ismcc - Test if code is running during compilation process (using mcc)
Syntax
x = ismcc
Description
x = ismcc returns true when the function
is being executed by mcc dependency checker and
false otherwise.
When this function is executed by the compilation process started
by mcc, it will return true. This function will
return false when executed within MATLAB as well as in deployed
mode. To test for deployed mode execution, use isdeployed.
This function should be used to guard code in matlabrc,
or hgrc (or any function called within them,
for example startup.m in the example on this page),
from being executed by MATLAB Compiler (mcc)
or any of the Builder products.
In a typical example, a user has ADDPATH calls
in their M-code. These can be guarded from executing using ismcc during
the compilation process and isdeployed for the
deployed application or component as shown in the example on this
page.
Example
`% startup.m
if( ismcc || isdeployed)
addpath(fullfile(matlabroot,'work'));See Also
isdeployed, mcc, matlabrc
 | isdeployed | | <library>Initialize[WithHandlers] | ![<library>Initialize[WithHandlers]](../../b_next.gif) |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit