Discretize values as multiples of a quantity
Syntax
quant(X,Q)
Description
quant(X,Q) takes two inputs,
X -- Matrix, vector or scalar
X
Q -- Minimum value
Q
and returns values in X rounded to nearest multiple of Q.
Examples
x = [1.333 4.756 -3.897]; y = quant(x,0.1)
© 1994-2005 The MathWorks, Inc.