Community Profile

Contact

Indeed! Thank you your method works well. It would be difficult to be more efficient, I guess.

1130 views

Responded 3 years ago

This line is 30% mor efficient than the former one: ib = B(find(a1 == B):find(a2 == B); I am trying to find a method with 'any'...

Yes, I should have said hundreds of thousands times! I have realised this morning that some details could help: A = a1:a2, with...

Hello, I have an time-efficiency issue using intersect: [~,~,ib] = intersect(A, B); A and B are vectors. A is a row-vector ~1x6...

Posted 3 years ago