round
Rounding of non-integer numbers.
(y)=round(x)
Inputs
x A real or complex array.
Outputs
y An array which is of the same size as the input. If an element of the input is real, the corresponding element of the output is the nearest integer. For complex numbers both the real and imginary parts are rounded.


Example
>>a=randn(2,3)*10
>>a
   14.1721   -0.2130   -7.5125
   -9.8574    5.2534  -15.2196

>>round(a)
         14          0         -8
        -10          5        -15