Effacer les filtres
Effacer les filtres

Floating point value to integer value

120 vues (au cours des 30 derniers jours)
Maurizio
Maurizio le 12 Déc 2011
Dear All, I have a matrix 250*21 and on the 8th column I have at the moment all the number not integer value, and I would like to convert in integer value. Is it possible?

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Déc 2011
I suspect that you want to use one of floor() or ceil() or round() or fix() . The four different calls round data slightly differently -- round down, round up, round to nearest, or discard fraction.

Plus de réponses (1)

Grzegorz Knor
Grzegorz Knor le 12 Déc 2011
int8, int16, int32, int64 commands convert to integer.

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by