title: corresponding intersection of two rows without zero in matlab
body: <p>I have a matrix(m*n). for every two rows, how I can find number of corresponding elements that are not zero. for example for following rows:
  r1=[1,3,0,4]   ,   r2=[5,0,0,4]
  ,the answer is 2. because first and fourth elements in two rows are not zero. thanks</p>