Number output when using syms

4 vues (au cours des 30 derniers jours)
Brenden Sluyter
Brenden Sluyter le 13 Fév 2020
Commenté : Brenden Sluyter le 14 Fév 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.

Réponse acceptée

Steven Lord
Steven Lord le 14 Fév 2020
Call vpa or double on the symbolic expression.
  1 commentaire
Brenden Sluyter
Brenden Sluyter le 14 Fév 2020
The vpa worked.
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by