title: Matlab: find mode in range
body: <p>I have a matrix like:</p>
  
  <pre><code>A=
      10 31 32 22
      32 35 52 77
      68 42 84 32
  </code></pre>
  
  <p>I need a function like <code>mode</code> but with range, for example mymode(A,10) that return 30, find most frequent number in range 0-10, 10-20, 20-30, .... and return most number in range.</p>