필터 지우기
필터 지우기

how to convert a exponentail to whole number

조회 수: 9 (최근 30일)
ramya raj
ramya raj 2011년 9월 20일
hai
i want to convert an matrix of exponential values to whole numbers
for example 3.6889e-005 -0.00017216 2.3815e-005 -0.00010904 -0.00023487 -0.00013938 8.2785e-005
  댓글 수: 7
Jan
Jan 2011년 9월 23일
@kanagapushpavalli: If your input is 3.6889e-005, what number do you want to get as output?
Jan
Jan 2011년 10월 8일
It is sometimes frustrating if the authors do not post a very tiny but necessary detail, which would allow a correct answer.

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

답변 (1개)

Jan
Jan 2011년 9월 23일
There are several possible solutions, because the question is not equivocal:
  • floor(x)
  • ceil(x)
  • fix(x)
  • round(x)
  • round(log10(x))
Look in the help text of these function to learn how to use them. If you specify the wanted output, a more precise help is possible.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by