I have two arrays.
size(A,2) = 525
size(B,2) = 4324438.
I'm trying to find the IDX of B that == A(i). I also have to round and take the first IDX just because of the time resolution of the data.
To achieve this I'm currently doing:
idxCueTemp = find(round(B(:),3)==round(A(i),3));
This is painfully slow and is taking ~60s to complete.
Is there a better way?