MATLAB Answers

xueqi
0

how to turn decimal numbers to integers

Asked by xueqi
on 15 Aug 2012
Dear fellows,
Do you have any idea how to turn a set of results which are decimal numbers to integers?

  0 Comments

Sign in to comment.

2 Answers

回答者: Ilham Hardy
2012 年 8 月 15 日
 採用された回答

Use
round()
or
fix()
HTH,IH

  0 Comments

Sign in to comment.


回答者: Isktaine
2012 年 8 月 15 日

Assuming your results are stored in A then:
fix(A)

  0 Comments

Sign in to comment.