how to round the decimal values

 採用された回答

Andrei Bobrov
Andrei Bobrov 2013 年 9 月 18 日

0 投票

Please read about round and about int8 and other

その他の回答 (1 件)

Roger Stafford
Roger Stafford 2013 年 9 月 18 日

1 投票

If I understand what you mean by "round up" to integers, you need the 'ceil' function:
ceil(3.01) --> 4

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by