title: How to plot a histogram from array
body: <p>I have an array of size <code>a=&lt;100x1 int32&gt;</code>  such that <code>a(1)=2</code>, <code>a(2)=3</code> and so on. How can I plot a histogram from this data. 
  when I directly try to plot using <code>hist(a)</code>, it shows the following error </p>
  
  <pre><code>Error using  .* 
  Integers can only be combined with integers of the same class, or scalar doubles.
  </code></pre>
  
  <p>Also in case the data is not integer suppose <code>a=&lt;100x1 string&gt;</code> such that <code>a(1)='Saturday'</code>, <code>a(2)='Monday'</code> and so on then how can I plot a histogram for this data.</p>