Is it not posiible for it to run an App with functions from Symbolic toolbox through the Matlab Web App Server?
(eg. sym, sum2poly)
i created an app and packaged it as web app but it came out log error:
"sym, sym2poly, syms" are excluded from packaging for the MATLAB Runtime environment according to the MATLAB Compiler license. Either remove the file or function from your code, or use the MATLAB function "isdeployed" to ensure the function is not invoked in the deployed component.

 Réponse acceptée

Walter Roberson
Walter Roberson le 27 Déc 2020

0 votes

Correct. It is never possible to compile or generate code for the Symbolic Toolbox.

4 commentaires

Lew Xiao Hui
Lew Xiao Hui le 27 Déc 2020
Thank you Walter.
or use the MATLAB function "isdeployed" to ensure the function is not invoked in the deployed component.
"isdeployed" is not gonna works right?
Walter Roberson
Walter Roberson le 27 Déc 2020
isdeployed would only be used if the symbolic part could be skipped or worked around numerically. For example exact derivative is nice if you can, but you can use jacobian and hessian to estimate derivatives.
Walter Roberson
Walter Roberson le 27 Déc 2020
In some cases you can work with Symbolic variables to come up with the form of a function or solution, and then use matlabFunction to generate a function handle with the File option. You would do that in an interactive session. In the deployed version you would not develop the form of the equations and would instead invoke the function handle.
If some generality is needed you can create forms for several models and generate code for all of them and pick the right one at runtime. You would not be able to create new kinds of models at runtime.
Lew Xiao Hui
Lew Xiao Hui le 27 Déc 2020
Thank you so much for the reply!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2020b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by