How to output a sym to a msgbox
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a polynomial and adding it in app designer. How to have a final output of msgbox(answer). I always get an error that it needs to be cell or char
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 2월 20일
char() of a sym will produce a representation of the symbolic expression. Be aware that the representation is intended to be human readable but will not always be executable code and in some cases can misrepresent the expression. If you need executable code then use matlabFunction
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Function Creation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!