title: yyplot labels in MATLAB
body: <p>How do I add labels to a yyplot in <a href="http://en.wikipedia.org/wiki/MATLAB" rel="nofollow">MATLAB</a>?</p>
  
  <p>Here's what MATLAB recommends doing:</p>
  
  <pre><code>figure
  
  x = 0:0.01:20;
  
  y1 = 200*exp(-0.05*x).*sin(x);
  
  y2 = 0.8*exp(-0.5*x).*sin(10*x);
  
  [AX,H1,H2] = plotyy(x,y1,x,y2,'plot');
  
  set(get(AX(1),'Ylabel'),'String','left label')
  
  set(get(AX(2),'Ylabel'),'String','right label')
  </code></pre>
  
  <p>I'd like to add labels to both y-axes of a yyplot without using the axes handles. Is it even possible or do the axes handles have to be used to do this?</p>