MATLAB Answer format

3 Ansichten (letzte 30 Tage)
Josh
Josh am 20 Mär. 2012
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.

Akzeptierte Antwort

Oleg Komarov
Oleg Komarov am 20 Mär. 2012
Is W a symbolic variable?
  3 Kommentare
Oleg Komarov
Oleg Komarov am 20 Mär. 2012
The type sym has a specific way of displaying results.
Just convert to double
double(W)
Josh
Josh am 20 Mär. 2012
Perfect! Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by