How to set numeric display format to bank with 3 digits and not only 2?

5 次查看(过去 30 天)
Hello,
i'm using in a GUI a uitable to show multiple numeric values and set the numeric display format to 'format bank'.
Is it possible to set the numic display like 'bank' but with 3 digits and trailing zeors?
Converting the numeric values to a string is not an option, tables in UI show strings left aligned and
numeric valus right aligned.
Thx

回答(1 个)

Tago
Tago 2019-1-10
编辑:Tago 2019-1-10
Example: format should be like bank, but with 3 digits instead of 2
123.120
'format bank' means:
2 digits and trailing zeros (see format bank in Matlab doc)
I need same, but with 3 digits like 123.120 (trailing zeros are mandatory)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by