thank you all for the answers
since all of your answers do what I wanted I'll choose the "winner" by:
1. short code
2. running time
3. running time on large matrices and/or many numbers to find
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!