Main Content
plotyy
(Not recommended) Create graph with two y-axes
plotyy
is not recommended. Use yyaxis
instead. For more information on updating your code, see Version
History.
Syntax
Description
plotyy(
displays the left
plot in the specified axes instead of the current axes. If ax
,___)ax
is a
vector, then plotyy
uses the first axes object in the vector. Specify
the axes as the first argument in any of the previous syntaxes.