Newb Question Printing Matrix Values
Newb Question Printing Matrix Values
(OP)
Hey I'm stumped here. How can I print the location of values in a matrix. For Example if I have a 10x10 matrix with random numbers how can I find and print out the location of every number greater than ten. Thanks





RE: Newb Question Printing Matrix Values
[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.