title: How to make frequency matrix from several other matrices in MATLAB
body: <p>I have 30 matrices (1446x1124) containing values going from 0 to 99. 
  I would like to have an output matrix, having the same size and containing in each cell the frequency of ouccrence (between 0 and 1) of one element of this matrix (for example 2) over the 30 input matrices.  </p>