how to turn decimal numbers to integers

17 visualizaciones (últimos 30 días)
xueqi
xueqi el 15 de Ag. de 2012
Dear fellows,
Do you have any idea how to turn a set of results which are decimal numbers to integers?

Respuesta aceptada

Ilham Hardy
Ilham Hardy el 15 de Ag. de 2012
Use
round()
or
fix()
HTH,IH

Más respuestas (1)

Isktaine
Isktaine el 15 de Ag. de 2012
Assuming your results are stored in A then:
fix(A)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by