You can use "find" and a logical expression. For example,
[row,col] = find(X > 10)
returns indices corresponding to the entries of X that are greater than 10.
xnuke
"Live and act within the limit of your knowledge and keep expanding it to the limit of your life." Ayn Rand, Atlas Shrugged.
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.