Format display number into table

6 次查看(过去 30 天)
I trieded to change the format of my display number by ussing "format".
All my information are Wh
I have the exemple which displays
2.137873250705810e+04
ans = 2.1379e+04
It should display
21379
ans = 21379
I don't want to use an fprint because I want to work directly in my table
  5 个评论
Stephen23
Stephen23 2023-7-4
"I use a object class "table" to store multi info after running my script like a sort of " balance sheet""
Your screenshot shows a double class array.

请先登录,再进行评论。

采纳的回答

Stephen23
Stephen23 2023-7-4
编辑:Stephen23 2023-7-4
You can change the variable viewer format in the options:
Preferences -> Variables -> Format -> Default Display Format.
You need to close and reopen the variable viewer for this to take effect.
  3 个评论
Stephen23
Stephen23 2023-7-4
The FORMAT command only affects the command window. It has no effect on the variable viewer.
Greg LANGE
Greg LANGE 2023-7-4
I have chosen format bank or short e

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by