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!