fn_eq
Contents
Syntax
b = fn_eq(u,v,'any|all')
Description
test 'equality' between arrays of different sizes
ex:
b = fn_eq(1:10,randi(10,7,1)) determines which pairs of indices in
two vectors correspond to matching
values
b = fn_eq(jet,[1 0 0],'all') determines which indices in colormap
'jet' correspond to color redSee also fn_add, bsxfun
Source
Thomas Deneux
Copyright 2012-2017