Error creating standalone matlab app designer application (symbolic variables , solve)
7 views (last 30 days)
Show older comments
Hi,
I am working on a standalone application in matlab app designer. I suppose the user doesn't have Matlab installed on his computer.
In the application, i need the function solve and symbolic variables.
when i run the app, everything works unless calculations that are being solved with solve function.
I've read that symbolic variables can not be compiled. I would like to know if there is any solution for my problem or if there is any alternative function.
I would appreciate any feedback!
0 Comments
Accepted Answer
Steven Lord
on 2 May 2023
Looking at the Support for MATLAB, Simulink, and Toolboxes page for MATLAB Compiler, the entry for Symbolic Math Toolbox for MATLAB Compiler states:
Supported:
MATLAB functions, Simulink, and Simscape blocks created from symbolic expressions using matlabFunction, matlabFunctionBlock, and simscapeEquation.
Not Supported:
Creation of symbolic expressions such as using sym, syms, and str2sym.
Depending on what you're trying to do, one potential solution could be to compute the solutions to your equations in MATLAB, convert them to MATLAB functions using matlabFunction, and use the generated MATLAB functions in your application. Another could be to solve the equations numerically using fzero in MATLAB or functions in Optimization Toolbox.
More Answers (0)
See Also
Categories
Find more on Assumptions 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!