<< kaytth Other rem >>

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

odd

Round towards nearest odd value.

Calling Sequence

Y=odd(X)

Parameters

X :

scalar, vector or matrix to be rounded

Y :

output scalar, vector or matrix containing only 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. X can be a scalar, a vector or a matrix.

Examples

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

Authors

<< kaytth Other rem >>