how to turn decimal numbers to integers

16 views (last 30 days)
Dear fellows,
Do you have any idea how to turn a set of results which are decimal numbers to integers?

Accepted Answer

Ilham Hardy
Ilham Hardy on 15 Aug 2012
Use
round()
or
fix()
HTH,IH

More Answers (1)

Isktaine
Isktaine on 15 Aug 2012
Assuming your results are stored in A then:
fix(A)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!