I have a matrix which is essestially two vectors. It looks something like:
Row 1: 1,2,1,2,1,2,1,2,1,2………
Row 2: 132.2, 132.7, 133.5………..
I want to pull out the indexes that correspond under all of the ones and twos into another vector. I've done something like:
A(A ==1) so it pulls out all of the 1s, but I want it to pull the values in the row underneath the 1 as well.
Best Answer