Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: order sort rank

Macro: indexcat
Description: returns the indices of the elements of a vector which fall into specified category.

Usage: ind = indexcat(y, value{, up})
Input:
y n x 1 vector
value scalar which specifies the lower band
up optional, upper bound for the category
Output:
ind m x 1 vector, indices of the elements falling into the specified category, it returns -1 if there are no such elements.

Example:
indexcat(5:18,8,10)
Result:

Contents of ind
[1,]        4 
[2,]        5 
[3,]        6 

Library: xplore
See also: order sort rank

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Zdenek Hlavka, 2000/06/20
(C) MD*TECH Method and Data Technologies, 17.8.2000