Short format display after using solve command

21 visualizzazioni (ultimi 30 giorni)
Although I have chosen the short format in the code and command window display preferences. The results after using a "solve" command are displayed as:
y =
7770/23 - (32083660183526053*R)/12947848928690176000
Can anybody help me so that I can view the numerical values in short format? Like:
y = 337.83 - 0.0024779*R

Risposta accettata

Walter Roberson
Walter Roberson il 10 Ago 2012
Use vpa()
  3 Commenti
Walter Roberson
Walter Roberson il 29 Set 2018
By default vpa() pays attention to the current digits() setting, which defaults to 32. You can specify how many digits you want at the time of the vpa() call. For example,
>> vpa(x,5)
ans =

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by