val2ind
Uniform grid index
Description
returns the index of the value indx
= val2ind(val
,delta
)val
in a uniform grid with a spacing
between elements of delta
. The first element of the uniform grid is
zero. If val
does not correspond exactly to an element of the grid, the
next element is returned. If val
is a vector, then
indx
is a vector of the same size.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2011a