Y = round(X)
round(X)
X
X = [-1.9 -0.2 3.4 5.6 7.0] round(X) =[-2 0 3 6 7]
X = [-1.9 -0.2 3.4 5.6 7.0]
round(X) =[-2 0 3 6 7]
ceil, fix, floor
ceil
fix
floor
(c) Copyright 1994 by The MathWorks, Inc.