필터 지우기
필터 지우기

How to display result in matlab without this format 1.0253e+04?

조회 수: 4 (최근 30일)
Eliza
Eliza 2017년 11월 19일
댓글: Stephen23 2017년 11월 19일
I wanna display the result as real number

답변 (2개)

Star Strider
Star Strider 2017년 11월 19일
Consult the documentation on the format (link) function.
  댓글 수: 2
Eliza
Eliza 2017년 11월 19일
I already used them here is the result format long >> ans
ans =
1.025280000000000e+04
Star Strider
Star Strider 2017년 11월 19일
Try this:
format short g
x = 1.025280000000000e+04
y = -2.95397040162016e-12
x =
10253
y =
-2.954e-12
At some point, format defaults to exponential notation, regardless.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2017년 11월 19일
편집: Image Analyst 2017년 11월 19일
Try issuing this command
format longg;
  댓글 수: 4
Eliza
Eliza 2017년 11월 19일
does this value mean -2.95397040162016 *10^-12?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by