Floating point value to integer value
120 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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.
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!