Error using Matlab Compiler

15 Ansichten (letzte 30 Tage)
Edoardo Legnaro
Edoardo Legnaro am 13 Mär. 2020
Kommentiert: Edoardo Legnaro am 13 Mär. 2020
Hi!
I'm trying to deploy an app made with Matlab App Designer.
It's scope is to provide some plots of a numerical integration of an hamiltonian system.
The app works perfectly, but when I try to deploy it (in order to make a Matlab app, a web app or a standalone app), i get the following error:
Error while determining required deployable files. Compilation terminated. Details:
Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('matlab.depfun.internal.cacheMtree', '/Applications/MATLAB_R2019b.app/toolbox/matlab/depfun/+matlab/+depfun/+internal/cacheMtree.m', 29)" style="font-weight:bold">matlab.depfun.internal.cacheMtree</a> (<a href="matlab: opentoline('/Applications/MATLAB_R2019b.app/toolbox/matlab/depfun/+matlab/+depfun/+internal/cacheMtree.m',29,0)">line 29</a>)
MATLAB code '/APP/H.m' contains the following syntax error(s):
L 1 (C 1): MXASET: Code analysis did not complete. File contains expressions that are too complex.
mcc failed.
Error while determining required deployable files. Compilation terminated.
The H.m file is the hamiltonian, it's obtained via the symbolic toolbox and is quite long, but I can't simplify
How can I overcome this problem?
Thank you so much

Antworten (1)

Sean de Wolski
Sean de Wolski am 13 Mär. 2020
The symbolic math toolbox can't be compiled. You'll need to take the symbolic expression and convert it to a numerical one using matlabFunction.
  1 Kommentar
Edoardo Legnaro
Edoardo Legnaro am 13 Mär. 2020
yes yes the H.m file is the output of matlabFunction

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB Compiler finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by