Why is Symbolic Math Toolbox Giving Decimal Answers?
조회 수: 3 (최근 30일)
이전 댓글 표시
When I ask symbolic math toolbox for symbolic outputs, it gives them in a decimal, but symbolic. I would like sym(pi) to give π and sym(sqrt(3)) to give . I've set my path to default and typed the command "reset(symengine)" and the commands "restoredefaultpath; rehash toolboxcache;" I've deleted and redownloaded both Matlab and the Symbolic toolbox. Any help is appreciated.
댓글 수: 0
채택된 답변
Paul
2023년 10월 4일
Check your sympref
The defaults are
sympref
Resulting in
[sym(pi) sym(sqrt(3))]
But, if you change this pref
sympref('FloatingPointOutput',true);
sympref
then
[sym(pi) sym(sqrt(3))]
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!