how to turn decimal numbers to integers

8 次查看(过去 30 天)
Dear fellows,
Do you have any idea how to turn a set of results which are decimal numbers to integers?

采纳的回答

Ilham Hardy
Ilham Hardy 2012-8-15
Use
round()
or
fix()
HTH,IH

更多回答(1 个)

Isktaine
Isktaine 2012-8-15
Assuming your results are stored in A then:
fix(A)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by