<< kaytth Other rem >>

Time Frequency Toolbox >> Time Frequency Toolbox > Other > odd

odd

Round towards nearest odd value.

Calling Sequence

Y=odd(X)

Parameters

X :

real array to be rounded

Y :

real array with same sizes as X. The nearest odd values

Description

odd rounds each element of X towards the nearest odd integer value. If an element of X is even, ODD adds +1 to this value.

Examples

X=[1.3 2.08 -3.4 90.43]; Y=odd(X)

Authors


Report an issue
<< kaytth Other rem >>