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?

 採用された回答

Walter Roberson
Walter Roberson 2011 年 12 月 12 日

5 投票

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.

その他の回答 (1 件)

Grzegorz Knor
Grzegorz Knor 2011 年 12 月 12 日

1 投票

int8, int16, int32, int64 commands convert to integer.

カテゴリ

ヘルプ センター および File Exchange で Numeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by