title: ploting multiple histogram in same figure with different color in matlab
body: <p>i have a 600x24 matrix a, i want to make histogram of each column in same figure but with differnet color in MATLAB,  i used the following code but it did not give me rainbow color,i used the following code, please help</p>
  
  <pre><code>col = hsv(24);
  
  hold on;
  
  for m = 1:24
  hist(a(:,m), 50);
  h = findobj(gca,'Type','patch');
  set(h,'FaceColor', col(m,:),'EdgeColor',col(m,:));
  alpha(0.3);
  end
  
  hold off;
  </code></pre>