how to stop scientific notation in matrix

122 vues (au cours des 30 derniers jours)
lee
lee le 2 Nov 2014
Commenté : Star Strider le 18 Oct 2018
when displaying a matrix i just want it to display it wit whole numbers and decimals but is comes out like this.
Money =
1.0e+05 *
Columns 1 through 7
1.0000 1.0500 1.1025 1.1576 1.2155 1.2763 1.3401
Columns 8 through 11
1.4071 1.4775 1.5513 1.6289
How do i change the format

Réponse acceptée

Star Strider
Star Strider le 2 Nov 2014
See the options in the format function.
  2 commentaires
Nathan Porter
Nathan Porter le 18 Oct 2018
The option that the OP is looking is something like:
format shortG
Star Strider
Star Strider le 18 Oct 2018
... or, since the array is named ‘Money’, perhaps
format bank

Connectez-vous pour commenter.

Plus de réponses (2)

Nathan Porter
Nathan Porter le 18 Oct 2018

Stavros Skouras
Stavros Skouras le 20 Juin 2018
format bank %(in R2018a)
  1 commentaire
Walter Roberson
Walter Roberson le 21 Juin 2018
Note that would use exactly two decimals.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Elementary Math dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by