User`s guide

1 Introducing the MATLAB Compiler
1-18
Limitations and Restrictions
MATLAB Code
MATLAB Compiler 3.0 supports almost all of the functionality of MATLAB.
However, there are some limitations and restrictions that you should be aware
of. This version of the Compiler cannot compile
Script M-files (See Converting Script M-Files to Function M-Files on page
3-10 for further details.)
M-files that use objects
Calls to the MATLAB Java interface
M-files that use
input or eval to manipulate workspace variables
Note input and eval calls that do not use workspace variables will compile
and execute properly.
M-files that use
exist with two input arguments, for example:
exist('foo','var')
The single variable form works for filenames and functions only.
M-files that dynamically name variables to be loaded or saved. This example
is disallowed by the Compiler:
x= 'f';
load('foo.mat',x);
M-files that load text files, for example:
load -ascii sampling1
The Compiler cannot compile built-in MATLAB functions (functions such as
eig have no M-file, so they cant be compiled). Note, however, that most of these
functions are available to you because they are in the MATLAB Math Built-in
Library (
libmatlb).
In addition, the Compiler does not honor conditional global and persistent
declarations. It treats
global and persistent as declarations. For example: