title: How to change individual bar colours of subplots in Matlab
body: <p>I have the following code:</p>
  
  <pre><code>%initialize variables
  titles = {'1a', '1b', '2a', '2b', '3a', '3b', '4a', '4b', '5a', '5b', '6a', '6b', '7a', '7b', '8a', '8b', '9a', '9b', '10a', '10b', '11a', '11b', '12a', '12b', '13a', '13b', '14a'};
  antibodies = {'Rel-A','p-Rel-A','IkBa','p-IkBa','A20'};
  x_axis = {'PBS','GOX','TNF','L','M','H'};
  colours = {'r','g','b','m','c'};
  Y_axis = 'Fold TNF (OD)';
  
  %plot graphs
  h = figure('name','Cytoplasm,Averaged,1h');
  for i=1:5,
      subplot(5,1,i)
      barwitherr(std_error{2}(i,1:6),averaged_data{2}(i,1:6),'BarWidth',0.7) %note that barwitherr is a downloadable function 
      set(get(gca,'YLabel'), 'String', Y_axis)
      set(gca, 'XTick', 1:6, 'XTickLabel', x_axis,'fontsize',18);  
      title(antibodies(i))
  
  end
  h=subplot(5,1,1);
  set(h,'ylim',[0,15]);
  
  h=subplot(5,1,3);
  set(h,'ylim',[0,4]);
  
  h=subplot(5,1,4);
  set(h,'ylim',[0,4]);
  
  h=subplot(5,1,5);
  set(h,'ylim',[0,4]);
  </code></pre>
  
  <p>This generates my graphs nicely except I want to change the colours of the individual bars of the individual subplots. i.e. how would you change the first bar of the first subplot green but leave the rest blue? </p>
  
  <p>Cheers</p>