Main Content

quant

Discretize values as multiples of quantity

Syntax

quant(X,Q)

Description

quant(X,Q) takes two inputs,

X

Matrix, vector, or scalar

Q

Minimum value

and returns values from X rounded to nearest multiple of Q.

Examples

x = [1.333 4.756 -3.897];
y = quant(x,0.1)

Version History

Introduced before R2006a