matlab中 数据保留有效位数

可以使用round函数  ,这函数原本功能是四舍五入

比如:

>> A = 0.0326465;
>> B = round(A*1000)/1000

B =

0.0330

原文地址:https://www.cnblogs.com/LJWJL/p/5109849.html