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

답변 (1개)

Andreas Sorgatz
Andreas Sorgatz 2017년 8월 25일

1 개 추천

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

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2013년 7월 27일

답변:

2017년 8월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by