title: MATLAB Plot with RGB Color
body: <p>I have a matrix with sample points from different classes. Let's say they are features from 10 subjects, and there are 80 samples per subject.</p>
  
  <p>So I have a 800 x 3 matrix.</p>
  
  <p>I want to plot it using the rows as 3D points, so I use this : </p>
  
  <pre><code>hold on;
  for i=1:length(m)
  plot3(m(i,1) , m(i,2) , m(i,3) , 'r*');
  end
  </code></pre>
  
  <p>this works but the argument <code>'r*'</code> plots all the points as red asterisks.</p>
  
  <p>But I want to plot every class as a different color. So whenever <code>i%80==0</code> I need to change the color argument with an RGB vector. How can I do this?</p>
  
  <p>Thanks for any help!</p>