place number before decimal point
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
albayenes
am 8 Apr. 2015
Beantwortet: Star Strider
am 8 Apr. 2015
Hi,
how can we set place number before decimal point?
For example i want to show 2.6104e+03 as 2610.4
0 Kommentare
Akzeptierte Antwort
Star Strider
am 8 Apr. 2015
It depends on where you’re displaying it. If in the Command Window, the format function determines how it is output:
value = 2610.4;
format short e
v1 = value
format short g
v2 = value
produces:
v1 =
2.6104e+03
v2 =
2610.4
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!