title: Size of cell elements
body: <p>I have five classes of data stored in a <code>cell</code>,</p>
  
  <pre><code>DataCell = 
  
  [74035x14 single] [8063x14 single] [7244x14 single] [6895x14 single] [2510x14 single]
  </code></pre>
  
  <p>I want to get the prior probabilities of each class,</p>
  
  <p>So want it's pretty simple,</p>
  
  <pre><code>SumData = 74032 + 8063 + 7244 + 6895 + 2510;
  prior = [74035 8063 7244 6895 2510] / SumData;
  </code></pre>
  
  <p>I was wondering if there is a way to avoid loop and get the answer.</p>
  
  <p>Thanks,</p>