title: How to draw errorbar on one series out of several of a bar graph
body: <p>I am not familiar with <code>errorbar</code> function in Matlab. The bar graph I am drawing has two series. I just need to plot the error bar for one of them. How should I plot this? Thank you! The error data for series 1 is defined in <code>error_1</code> variable. </p>
  
  <pre><code>series_1 = [ 10 20 30 40 50];
  series_2 = [2 4 6 8 10];
  error_1 = [0.5 1.0 1.5 2.0 2.5];
  a = [series_1' zeros(length(series_1),1)];
  b = [zeros(length(series_1),1) series_2'];
  figure(1);
  [AX,H1,H2] = plotyy(1:length(series_1),a,1:length(series_2),b,'bar','bar');
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6gJaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6gJaz.png" alt="enter image description here"></a></p>