필터 지우기
필터 지우기

Floating point value to integer value

조회 수: 120 (최근 30일)
Maurizio
Maurizio 2011년 12월 12일
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일
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일
int8, int16, int32, int64 commands convert to integer.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by