how to turn decimal numbers to integers

6 visualizzazioni (ultimi 30 giorni)
Dear fellows,
Do you have any idea how to turn a set of results which are decimal numbers to integers?

Risposta accettata

Ilham Hardy
Ilham Hardy il 15 Ago 2012
Use
round()
or
fix()
HTH,IH

Più risposte (1)

Isktaine
Isktaine il 15 Ago 2012
Assuming your results are stored in A then:
fix(A)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by