MATLAB: How to add a left/right axis to a plot in older versions of matlab r2015a

axesaxiscreateMATLABmultipleplotyytwoyyaxis

I would like to create another axis on my plot in MATLAB R2015a. It appears the the "yyaxis" function does this, but only exists after MATLAB R2016a.
The "plotyy" function does not work for me as there are limitations in customization of the axes.
Is there any better and simple way to create another axis?

Best Answer

The following link details how multiple axes can be created:
These axes are the same as any other axes you use and do not have limitations on editing properties. One property you may want to change is the XColor property, which can be set to none if you do not want an extra x-axis, only a y-axes.
>> ax2.XColor = 'none'
There is also a blog on this topic, which goes through some File Exchange functions that may also be of use: