how can I call matlabFunction without optimize
2 次查看(过去 30 天)
显示 更早的评论
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...
0 个评论
回答(1 个)
Andreas Sorgatz
2017-8-25
Use
f = matlabFunction(YourExpression,'File','YourFileName','Optimize',false);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!