MATLAB: Uitable ColumnFormat is ignored

columnformatMATLABuitable

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.

Best Answer

The problem is solved by passing the data to the uitable function in form of a cell-array instead of a table.