필터 지우기
필터 지우기

how to stop scientific notation in matrix

조회 수: 128 (최근 30일)
lee
lee 2014년 11월 2일
댓글: Star Strider 2018년 10월 18일
when displaying a matrix i just want it to display it wit whole numbers and decimals but is comes out like this.
Money =
1.0e+05 *
Columns 1 through 7
1.0000 1.0500 1.1025 1.1576 1.2155 1.2763 1.3401
Columns 8 through 11
1.4071 1.4775 1.5513 1.6289
How do i change the format

채택된 답변

Star Strider
Star Strider 2014년 11월 2일
See the options in the format function.
  댓글 수: 2
Nathan Porter
Nathan Porter 2018년 10월 18일
The option that the OP is looking is something like:
format shortG
Star Strider
Star Strider 2018년 10월 18일
... or, since the array is named ‘Money’, perhaps
format bank

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

추가 답변 (2개)

Nathan Porter
Nathan Porter 2018년 10월 18일

Stavros Skouras
Stavros Skouras 2018년 6월 20일
format bank %(in R2018a)
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 6월 21일
Note that would use exactly two decimals.

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

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by