how can I call matlabFunction without optimize

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...

Antworten (1)

Andreas Sorgatz
Andreas Sorgatz am 25 Aug. 2017

1 Stimme

Use
f = matlabFunction(YourExpression,'File','YourFileName','Optimize',false);

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Jul. 2013

Beantwortet:

am 25 Aug. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by