Create Chart with Two y-Axes - MATLAB & Simulink - MathWorks Activate the right side using yyaxis right. Then plot a set of data against the right y -axis. r = x.^2/2; yyaxis right plot (x,r); Add Title and Axis Labels Control which side of the axes is active using the yyaxis left and yyaxis right commands. Then, add a title and axis labels.