MATLAB: Can’t use yyaxis “No appropriate method, property, or field ‘Pin’ for class ‘matlab.gr​aphics.sha​pe.interna​l.ScribePe​er’. Error in yyaxis”

yyaxis error

Hi!
I use 2016a. I try to use yyaxis and it brings this error: "No appropriate method, property, or field 'Pin' for class 'matlab.graphics.shape.internal.ScribePeer'.
Error in yyaxis"
I have C:\Program Files\MATLAB\R2016a\toolbox\matlab\graphics\yyaxis.p
How can I use the function?
Kind regards and thanks for your help

Best Answer

syms x y
yyaxis left
fplot(2*x)
yyaxis right
fplot(-2*x)
This example works.