Borrar filtros
Borrar filtros

uitable ColumnFormat is ignored?

13 visualizaciones (últimos 30 días)
Ali Komai
Ali Komai el 29 de Ag. de 2019
Respondida: Ali Komai el 3 de Sept. de 2019
I have an uitable and want one of its columns be shown with just 2 digits (100,35 for example). I tried using the property ColumnFormat to get this done like this:
uitable(myfigure,'Data',mydata,'ColumnFormat',{[],[],[],'bank'}) % I want to change the format of the 4th column
Sadly this is simply ignored and the column is shown as usual with 4 digits. Issueing "format bank" before creating the table doesn't have any effect either, always 4 digits.
I'm aware that I could round the values in my table but I don't want that. I just want to change the displayformat.
  1 comentario
Ali Komai
Ali Komai el 2 de Sept. de 2019
In my desperation I now tried to round the values in the table (what I initially didn't want) but this doesn't help either. Then trailing zeros will be displayed (like 100,3500).
Any help would be appreciated.

Iniciar sesión para comentar.

Respuesta aceptada

Ali Komai
Ali Komai el 3 de Sept. de 2019
The problem is solved by passing the data to the uitable function in form of a cell-array instead of a table.

Más respuestas (0)

Categorías

Más información sobre Timing and presenting 2D and 3D stimuli en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by