MATLAB: Does the PLOTYY(X1,​Y1,X2,Y2,’​function1’​,’function​2′) command use function2(X2,Y2) to plot the data for the right axes

functionleftMATLABplotplottingplotyyrighttwoy axis

When I type:
help plotyy
The following information is shown in the third paragraph:
PLOTYY(X1,Y1,X2,Y2,FUN1,FUN2) uses FUN1(X1,Y1) to plot the data for the left axes and FUN2(X1,Y1) to plot the data for the right axes.
However, when I type:
doc plotyy
The following information is shown in the third paragraph:
plotyy(X1,Y1,X2,Y2,'function1','function2') uses function1(X1,Y1) to plot the data for the left axis and function2(X2,Y2) to plot the data for the right axis.

Best Answer

The HELP text for the PLOTYY function should read as follows:
PLOTYY(X1,Y1,X2,Y2,'function1','function2') uses function1(X1,Y1) to plot the data for the left axis and function2(X2,Y2) to plot the data for the right axis.
Related Question