I am trying to find a function that will produce what row a series of numbers are together. For example in a column of the following:
T2 = [2 7 4 5 1 0 1 3 1 5 6 7 4 7 2 7]'
I would like to find which row there is a specific transition between 2 and 7 and vice versa. I have used the find(T2 == 2 & 7) function, however, that produces the location of every single location where the integer is exactly equal to 2 and 7.
Any suggestions?? Thank you!
Best Answer