MATLAB中取整函数
来源:互联网 发布:ubuntu 查找组 编辑:程序博客网 时间:2024/06/05 10:15
1. round(x) 取最接近x的整数(四舍五入取整)
>>round([3.12 -3.12])
ans =
3 -3
2. ceil(x) 取大于x的最小整数
>>ceil([3.12 -3.12])
ans =
4 -3
3. floor(x) 取小于x的最大的整数(高斯取整)
>>floor([3.12 -3.12])
ans =
3 -4
4. fix(x):截尾取整
>>fix([3.12 -3.12])
ans =
3 -3
- MATLAB中取整函数
- [MATLAB]MATLAB常用函数
- [Matlab] Matlab cell函数
- matlab函数
- MATLAB函数
- matlab 函数
- matlab函数
- Matlab函数
- matlab函数
- Matlab函数
- Matlab 函数
- Matlab函数
- MATLAB函数
- Matlab函数
- Matlab函数
- MATLAB函数
- Matlab--函数
- matlab函数
- PHP上传原理及应用
- 菜鸟入门之浅谈函数重载和多态的区别
- Playing Video on the iPhone and iPad 播放器
- OSGi Web启动的classloader机制(基于equinox3.5.2)
- 导入
- MATLAB中取整函数
- 网页
- 从零开始学习jQuery (二) 万能的选择器
- iphone之MPMoviePlayer本地视频 与 远程视频
- souseinsight添加文件类型
- 解决替换线程刷新
- 特征选择--文本分类: 信息增益
- 从零开始学习jQuery (二)选择器篇
- 从零开始学习jQuery (二)选择器篇