MATLAB中round是如何处理小数部分为0.5的数的取整运算,可以来处理。
round(a+0.05)
例如:
>>a=4.5;round(a+0.05)
>>5
>>a=4.4;round(a+0.05)
>>4
往最靠近的整数取整