MATLAB: Can the MATLAB Compiler compile MATLAB objects

ccompilecompilerdifferentMATLAB Compilermcosmethodobjectsoopvisualworkaround

I have MATLAB code which uses MATLAB objects or calls MATLAB functions which use objects. I would like to deploy that code with the MATLAB Compiler.

Best Answer

As of the MATLAB Compiler 4.0 (R14) you may compile MATLAB objects. The MATLAB Compiler 4.0 (R14) can compile all aspects of the MATLAB language. The limitations and restrictions of the MATLAB Compiler 4.0 (R14) are available from the Related Solution listed at the bottom of the page.
The MATLAB Compiler 3.0 (R13) is unable to compile MATLAB objects. This is because it converts the MATLAB code to C-code. It is unable to make this conversion for MATLAB objects. The limitations and restrictions of the MATLAB Compiler 3.0 (R13) are available from the Related Solution listed below.