Number output when using syms

2 visualizzazioni (ultimi 30 giorni)
Brenden Sluyter
Brenden Sluyter il 13 Feb 2020
Commentato: Brenden Sluyter il 14 Feb 2020
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.

Risposta accettata

Steven Lord
Steven Lord il 14 Feb 2020
Call vpa or double on the symbolic expression.

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by