I have two methods for identifying which elements in a matrix have certain properties (e.g.; exceed a threshold).
[rdx, cdx] = find(Amat>THR);
that I use for two different purposes [and actually apply to different matrices.] Results from the two methods are compared eventually. I'd like to take the two vectors (rdx, cdx) and convert them to a matrix so I can do an operation such as:
which is done for the former case. I'm sure there's a simple way to take the two vectors and combine them to produce "pointer" matrix "ndx," but I haven't found it.