k-Wave Toolbox

roundEven

Round towards the nearest even number.

Syntax

x = roundEven(x)

Description

roundEven rounds each element of x towards the nearest even integer.

Inputs

x input value/s

Outputs

x value/s of x rounded to nearest even integer

See Also

roundOdd