Limitations and Restrictions
1-17
Limitations and Restrictions
MATLAB Code
This version of the MATLAB Compiler supports almost all of the functionality
of MATLAB. However, there are some limitations and restrictions that you
should be aware of. Although this version of the MATLAB Compiler cannot
compile the following, a future version will be able to compile them:
•Script M-files (See “Converting Script M-Files to Function M-Files” in
Chapter3forfurtherdetails.)
•M-files that use objects
•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 pro perly.
The Compiler ca nnot compile built-in MATLAB functions (functions such as
eig havenoM-file,sotheycan’tbe compiled).Note,however,t hatmostofthese
functions are a vailable to yo u beca use they are in the MATLAB Math Built-in
Library (
libmatlb).
In addition, the Compiler does not honor conditional g lobal and persistent
declaratio ns. I t treats global and persistent as d e clarations. Fo r example,
if (y==3)
persistent x
else
x = 3;
end
Comments to this Manuals