configure display of exponential numbers

8 views (last 30 days)
Matlab displays large or small numbers as:
1.0e-10 *
0.1270 0.1310 0.1120 0.1480 0.1650
I just want the exponent used to always be a factor of 3, ie: engineering notation. I have num2eng from the file exchange but it displays values as strings which is not ideal for me. Perhaps there is a way to configure it differently but I really like the build in way of displaying numbers, I just want it to report the exponent in factors of three. Is this possible?
ex from num2eng:
1×5 cell array
{'12.7e-12'} {'13.1e-12'} {'11.2e-12'} {'14.8e-12'} {'16.5e-12'}

Accepted Answer

Stephen23
Stephen23 on 29 Jan 2022
format shortEng
1e-10*[0.1270,0.1310,0.1120,0.1480,0.1650]
ans = 1×5
1.0e+00 * 12.7000e-012 13.1000e-012 11.2000e-012 14.8000e-012 16.5000e-012

More Answers (0)

Categories

Find more on Entering Commands in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!