Format display number into table

7 Ansichten (letzte 30 Tage)
Greg LANGE
Greg LANGE am 4 Jul. 2023
Kommentiert: Greg LANGE am 4 Jul. 2023
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 Kommentare
Stephen23
Stephen23 am 4 Jul. 2023
"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.
Greg LANGE
Greg LANGE am 4 Jul. 2023
Yes correct, my bad .

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Stephen23
Stephen23 am 4 Jul. 2023
Bearbeitet: Stephen23 am 4 Jul. 2023
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 Kommentare
Stephen23
Stephen23 am 4 Jul. 2023
The FORMAT command only affects the command window. It has no effect on the variable viewer.
Greg LANGE
Greg LANGE am 4 Jul. 2023
I have chosen format bank or short e

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by