MATLAB: How to use toolbox functions such as sym when APP Designer generates exe

app designertoolbox function

When I use the APP Designer of Matlab, there is no problem in debugging, but when the exe file is generated, there is a problem. The prompt message is similar to "According to the MATLAB Compiler license, "coeffs, matlabFunction, numden, sym, sym2poly" is not included when packaging the MATLAB Runtime environment." Is there any solution?

Best Answer

The Symbolic Toolbox can never be compiled. There is no way to trick it into compiling either.
However, if those are the only symbolic functions you are using, then I suspect it is possible for you to construct the function handle ahead of time, in an interactive session, and save it to a file (matlabFunction can write to files -- just make sure to turn optimize off)