title: MATLAB: Scatterplot - points with different shapes according to position
body: <p>The properties of my figure I want to build are the following:</p>
  
  <p>The figure shows 200 points. The points above the diagonal should be shown with red stars and the one below the diagonal, with blue triangles. </p>
  
  <p>This is what I've managed to do so far </p>
  
  <pre><code>x=[0 1];
  y=[0 1];
  line(x,y, 'linewidth', 1);
  hggroup = scatter(rand(100,1),rand(100,1));
  axis tight;
  axis square;
  title('Scatterplot')
  </code></pre>
  
  <p>Could you help me with that? Thanks in advance.</p>