title: How to use uniform distribution to see central limit theorem in action?
body: <p>I would like to use MATLAB to visualize the Central Limit Theorem in action. I would like to use <code>rand()</code> to produce 10 samples of uniform distribution <code>U[0,1]</code> and compute their average, then save it to a matrix 'Mat'.</p>
  
  <p>I would then use a histogram to visualize the convergence in distribution. How would you do this and normalize that histogram so it is a valid probability density (instead of just counting the frequency of occurrence)?</p>
  
  <p>To generate the samples I am doing something like:</p>
  
  <pre><code>Mat = rand(N,sizeOfVector) &gt; rand(1);
  </code></pre>
  
  <p>But I guess I am going  to the wrong side.</p>