I have a column of numbers, and I want to find those that are greater than 10 and then record their indices. I can do that for a single index with:
[y, I] = A(A>10)
where y stores the values, I stores the index, and A is the matrix name.
but MATLAB won't let me do it for more than one index. When I tried, it gave me the error:
"Indexing cannot yield multiple results. "
Any help would be greatly appreciated because I am very new to MATLAB and haven't figured out all the tricks yet.