Number output when using syms

조회 수: 4 (최근 30일)
Brenden Sluyter
Brenden Sluyter 2020년 2월 13일
댓글: Brenden Sluyter 2020년 2월 14일
As the attached picture shows, when I try to use the syms funtion, the output comes out as a long equation. The equation gives the right answer when you solve it, but I was wondering if there was a way to output just the number I needed.
Thanks in advance.

채택된 답변

Steven Lord
Steven Lord 2020년 2월 14일
Call vpa or double on the symbolic expression.
  댓글 수: 1
Brenden Sluyter
Brenden Sluyter 2020년 2월 14일
The vpa worked.
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by