Say you have a matrix A and you want to find every position with a one. You can do this by:
B = (A == 1 ),
where B will be a logical with 1's at the positions which are 'true'.
If you want the positions of these you can use the function find() around this:
C = find(B) ;