Number output when using syms

5 ビュー (過去 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 Center および File ExchangeConversion 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