MATLAB Functions That Cannot Be Compiled

Note

Due to the number of active and ever-changing list of MathWorks® products and functions, this is not a complete list of functions that can not be compiled. If you have a question as to whether a specific MathWorks product's function is able to be compiled or not, the definitive source is that product's documentation. For an updated list of such functions, see Support for MATLAB and Toolboxes.

Functions that cannot be compiled fall into the following categories:

  • Functions that print or report MATLAB® code from a function, for example, the MATLAB help function or debug functions, will not work.

  • Simulink® functions, in general, will not work.

  • Functions that require a command line, for example, the MATLAB lookfor function, will not work.

  • clc, home, and savepath will not do anything in deployed mode.

  • Tools that allow run-time manipulation of figures

Returned values from standalone applications will be 0 for successful completion or a nonzero value otherwise.

In addition, there are functions and programs that have been identified as nondeployable due to licensing restrictions.

mccExcludedFiles.log lists all the functions and files excluded by mcc if they can not be compiled. It is created after each attempted build if there are functions or files that cannot be compiled.

List of Unsupported Functions and Programs

add_block
add_line
checkcode
close_system
colormapeditor
commandwindow
Control System Toolbox™ prescale GUI
createClassFromWsdl
dbclear
dbcont
dbdown
dbquit
dbstack
dbstatus
dbstep
dbstop
dbtype
dbup
delete_block
delete_line
depfun
doc
echo
edit
fields
figure_palette
get_param
help
home
inmem
keyboard
linkdata
linmod
mislocked
mlock
more
munlock
new_system
open_system
pack
pcode
plotbrowser
plotedit
plottools
profile
profsave
propedit
propertyeditor
publish
rehash
restoredefaultpath
run
segment
set_param
sim
sldebug
type
Was this topic helpful?