PLOTYYY - Extends plotyy to include a third y-axis. plotyyy(x1,y1,x2,y2,x3,y3) Syntax: [ax,hlines] = plotyyy(x1,y1,x2,y2,x3,y3,ylabels) Inputs: x1,y1 are the xdata and ydata for the first axes' line x2,y2 are the xdata and ydata for the second axes' line x3,y3 are the xdata and ydata for the third axes' line ylabels is a 3x1 cell array containing the ylabel strings Outputs: ax - 3x1 double array containing the axes' handles hlines - 3x1 double array containing the lines' handles Example: x=0:10; y1=x; y2=x.^2; y3=x.^3; ylabels{1}='First y-label'; ylabels{2}='Second y-label'; ylabels{3}='Third y-label'; [ax,hlines] = plotyyy(x,y1,x,y2,x,y3,ylabels); legend(hlines, 'y = x','y = x^2','y = x^3',2) m-files required: none