title: Generating Random two-dimensional points in Matlab
body: <p>I am newbie in Matlab , and I am trying to generate two-dimensional random numbers based on Gaussian (normal) distribution and uniform distribution. assume that I want to create a 2 different dataset (Gaussian(1800 pairs) and Uniform(1200 pairs)) which is going to use for Data mining tasks/algorithms (over-fitting in two-dimensional data) example.</p>
  
  <p>other important issue is that the data points should be in range of 0-20.</p>
  
  <p>I've tried this for Gaussian distribution</p>
  
  <pre><code>SIGMA = [.5 .05; .05 .5 ];
  temp = mvnrnd([-3 0], SIGMA,1800);
  </code></pre>
  
  <p>these codes generates numbers between -5 to 5 and I want to generate 0-20 so I've tried</p>
  
  <pre><code>SIGMA = [0 20];
  </code></pre>
  
  <p>but I get the range -20 to 20 </p>
  
  <p>How can I get the range of 0-20 ?</p>