k-Wave Toolbox

roundOdd

Round towards the nearest odd number.

Syntax

x = roundOdd(x)

Description

roundOdd rounds each element of x towards the nearest odd integer.

Inputs

x input value/s

Outputs

x value/s of x rounded to nearest odd integer

See Also

roundEven