| 查看: 532 | 回复: 1 | ||
xinji铜虫 (小有名气)
|
[求助]
Matlab中有没有表示四射五入的函数
|
|
Matlab中有没有表示四射五入的函数??? 就像Fortran中的nint()函数。 |
» 猜你喜欢
越来越担心硕士毕业后没有竞争力了
已经有15人回复
售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急
已经有6人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有3人回复
售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急
已经有5人回复
售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急
已经有7人回复
售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急
已经有6人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有7人回复
售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急
已经有4人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有8人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有9人回复
» 本主题相关价值贴推荐,对您同样有帮助:
matlab的函数调用问题
已经有3人回复
MATLAB中产生高斯白噪声,涉及到awgn和wgn函数
已经有3人回复
问个关于matlab里find函数的问题!
已经有4人回复
请教个matlab中的rand函数
已经有3人回复
matlab做函数图象的问题
已经有6人回复

【答案】应助回帖
★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
臭水沟: 金币+2, 谢谢交流~~ 2012-05-08 09:31:17
xinji: 金币+5, ★★★很有帮助 2012-05-08 17:16:00
感谢参与,应助指数 +1
臭水沟: 金币+2, 谢谢交流~~ 2012-05-08 09:31:17
xinji: 金币+5, ★★★很有帮助 2012-05-08 17:16:00
|
round()函数就可以。 B = floor(A) rounds the elements of A to the nearest integers less than or equal to A. For complex A, the imaginary and real parts are rounded independently. (floor:朝负无穷方向舍入) B = ceil(A) rounds the elements of A to the nearest integers greater than or equal to A. For complex A, the imaginary and real parts are rounded independently. (ceil:朝正无穷方向舍入) B = fix(A) rounds the elements of A toward zero, resulting in an array of integers. For complex A, the imaginary and real parts are rounded independently. (fix:朝零方向舍入 ) B = round(A) rounds the elements of X to the nearest integers. For complex X, the imaginary and real parts are rounded independently. (round:四舍五入) |

2楼2012-05-07 23:08:50










回复此楼
20