MATLAB中的取整函数(fix、round、floor、ceil)
fix -向零方向取整fixRound towards zero. fix(X) rounds the elements of X to the nearest integerstowards zero.例:t =7.6806 3.5388 3.61302.3309 3.4719 7.41635.8736 2.5372 7.0590fix(t)ans =7 3 32 3 75 2 7round -向最近的方向取整,亦即“四舍五入”roundrounds...