User`s guide
Limitations About What May Be Compiled
Note Se e “ Un suppo rte d Functions” on page 9-8 for a complete list of
functions that cannot be compiled.
MATLAB Code
MATLAB Compiler 4 supports much of the functionality of MATLAB.
However, there are some limitations and restrictions that you should be
aware of. This version of MATLAB Compiler cannot create interfaces for
script M-files (See “Converting Script M-Files to Function M- Fil es” on page
5-19 for further details.)
Fixing Callback Problems: Missing Functions
When MATLAB Compiler creates a standalone application,itcompilesthe
M-file(s) you specify on the command line and, in addition, it com piles any
other M-files that your M-file(s) calls. MATLAB Compiler uses a dependency
analysis, which determines all the functions on w hich the supplied M-files,
MEX-files, and P-files depend. The dependency analysis may not locate a
function if the only place the function is called in your M-file is a call to the
function either
• In a callback string
• In a string passed as an argument to the
feval function or an ODE solver.
MATLAB Compiler does not look in these text strings for the names of
functions to compile.
Symptom
Yo ur application runs, but an interactive user interface element, such as
a push button, does not work. The compiled application issues this error
message:
An error occurred in the callback: change_colormap
The error message caught was : Reference to unknown function
change_colormap from FEVAL in stand-alone mode.
12-3