Error creating standalone matlab app designer application (symbolic variables , solve)

7 views (last 30 days)
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!

Accepted Answer

Steven Lord
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:
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.
  1 Comment
Iheb Melki
Iheb Melki on 3 May 2023
Edited: Iheb Melki on 3 May 2023
Hi Thanks for the answer.
In my case i used fsolve instead of solve, so i don't have to use symbolic variables no more, and it's working properly now.

Sign in to comment.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!