Alternative to "solve" command for faster computation?
조회 수: 11 (최근 30일)
이전 댓글 표시
Hello, is there an alternative approach to solve-command when computing 3 unknown variables out of 3 equations? Specifically, I have 3 points (X coordinates) lying on a curve and I want to get the radius of this curve (using the analytic circle equation). It actually works with solve but the problem is that I do this in a loop where the computation time is crucial, according to the Run&Time solve seems to be the largest source of the time delay.
Thank you for your hints
댓글 수: 0
답변 (1개)
Walter Roberson
2013년 2월 18일
solve() once will symbolic variables, either before the loop or while you are designing the program. Use matlabFunction() to turn the symbolic version into a function handle of a numeric function (or to write the function to a file.)
댓글 수: 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!