MATLAB Answer format

Why does my answer appear as (as example) 1234567/987654*pi^2? Why will it not appear as a number? If I then copy and paste the answer, and hit enter, I get the number. But why when I type W= do I get the equation? I have tried changing the format to short, shortE, shortG...anything. Thanks.

 Respuesta aceptada

Oleg Komarov
Oleg Komarov el 20 de Mzo. de 2012

0 votos

Is W a symbolic variable?

3 comentarios

Josh
Josh el 20 de Mzo. de 2012
w is. But I am actually typing Wxy for my final answer. It gives me an equation, with no variables.
Oleg Komarov
Oleg Komarov el 20 de Mzo. de 2012
The type sym has a specific way of displaying results.
Just convert to double
double(W)
Josh
Josh el 20 de Mzo. de 2012
Perfect! Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Mzo. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by