Borrar filtros
Borrar filtros

how can I call matlabFunction without optimize

2 visualizaciones (últimos 30 días)
Kevin
Kevin el 27 de Jul. de 2013
Respondida: Andreas Sorgatz el 25 de Ag. de 2017
I call matlabFunction to generate the M-file from a Sym expression, but it take a very long time(about hours). And every time I stop it by Ctrl+C, it shows that it's stop at the MuPad/Optimize process, So how I can ignore the optimize option? my expression is very simple but very long, 10 vars, the highest order is 4, only have the +,-,*,/ operator, no sin, epx, sqrt...

Respuestas (1)

Andreas Sorgatz
Andreas Sorgatz el 25 de Ag. de 2017
Use
f = matlabFunction(YourExpression,'File','YourFileName','Optimize',false);

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by