Display Numbers in UITABLE

Hi all,
I have this table:
I would like to get the number 1624.9 instead of 1.6249e03.
Also i would like to center the numbers and change their font.
Thank you.

 Risposta accettata

Walter Roberson
Walter Roberson il 26 Ott 2020

0 voti

If you are using uitable with "traditional" figures, figure(), then set the ColumnFormat property to {'shortg', 'shortg'}

3 Commenti

Bruno Luong
Bruno Luong il 26 Ott 2020
It also works on uifigure.
Idan Hamawi
Idan Hamawi il 26 Ott 2020
Thank you! {'Bank','Bank'} worked for me
Bruno Luong
Bruno Luong il 26 Ott 2020
Modificato: Bruno Luong il 26 Ott 2020
And we are still desparetly waiting for TMW to implement more generic format a la sprintf and friends.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by