title: How to make scatter plot matrix in matlab with different colors in one plot?
body: <p>In matlab <em>plotmatrix</em> can be used for displaying matrix of plots. Is it possible to have different colors in one plot? I have high dimensional data (e.g. 10 dimensions) and I want to display them using plot matrix. I want to use different colors for different clusters. </p>
  
  <p>I want it look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Tqsq4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tqsq4.png" alt="enter image description here"></a></p>
  
  <p>Also I want to assign color programatically i.e. to to have </p>
  
  <pre><code>colors=lines(numClusters);
  </code></pre>
  
  <p>and then for cluster i=1:n assign </p>
  
  <pre><code>'Color',colors(i)
  </code></pre>