How to format data in table?

18 vues (au cours des 30 derniers jours)
Brian
Brian le 5 Nov 2011
I have a function that opens a figure and prints data to a table. The numbers are formatted in scientific notation, how can I change that? I tried format ShortG but it doesn't affect the table. Thank you!
  3 commentaires
Walter Roberson
Walter Roberson le 5 Nov 2011
The "format" command *only* affects disp() and display() .
Brian
Brian le 6 Nov 2011
Yes, it is a UITABLE. I just want in regular numbers, e.g. 1437.5 not 1.4375e+03

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 6 Nov 2011
There is no provision to do that in uitable(). When you indicate the format for the column in uitable(), then the only supported alternate format available for numeric entries is 'bank'.
The alternative is to store your entries as character strings.

Plus de réponses (0)

Catégories

En savoir plus sur Tables 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