Why am I unable to compile functions from the Symbolic Math Toolbox?

12 views (last 30 days)
I need to compile the functions from the Symbolic Math Toolbox. When I try to execute a compiled application using functions from the Symbolic Math Toolbox such as "syms", "solve" or "vpasolve" I receive the following error:
Undefined variable or function : sym
 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Nov 2024
Edited: MathWorks Support Team on 6 Nov 2024
As of R2021b, the Symbolic Math Toolbox is supported with MATLAB Compiler.
However, the creation of symbolic expressions such as "sym", "syms", and "str2sym" is not supported in deployed apps. For more information on how to put symbolic expressions in deployed apps, please refer to Deploy Generated MATLAB Functions from Symbolic Expressions with MATLAB Compiler
Please refer to the the supported toolboxes for
for more information.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!