필터 지우기
필터 지우기

configure display of exponential numbers

조회 수: 7 (최근 30일)
cdlapoin
cdlapoin 2022년 1월 29일
답변: Stephen23 2022년 1월 29일
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'}

채택된 답변

Stephen23
Stephen23 2022년 1월 29일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by