综武侠]这该死的系统77:matlab有没有取整的函数

来源:百度文库 编辑:高考问答 时间:2024/05/03 05:00:09

round(x) 取最接近x的整数;
ceil(x) 取大于x的最小整数;
floor(x) 取小于x的最大的整数;

fix函数可取整,如:
>> fix(1.11)
ans =
1

round(x); ceil(x); floor(x);等