How to display Decimal number without e (x.xxxxxe-xx) in a matrix

29 Ansichten (letzte 30 Tage)
Helen Lee
Helen Lee am 14 Apr. 2020
Beantwortet: Walter Roberson am 14 Apr. 2020

Antworten (1)

Walter Roberson
Walter Roberson am 14 Apr. 2020
Use compose() with a string as the format.
>> compose("%.8f", [0.162109;-0.03215;7.20248e-05])
ans =
3×1 string array
"0.16210900"
"-0.03215000"
"0.00007202"

Kategorien

Mehr zu Numeric Types 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!

Translated by