MATLAB: How to plot a sym function with constant function such as x=2(vertical line) & y=3(horizontal line)

sym plotsymbolic plot

syms x y fplot((@x)x==2) hold on fplot((@y)y==3)

Best Answer

syms x y
eqn=y
eqn1=x
fplot(subs(eqn,y,3))
hold on
fplot(subs(eqn1,x,2))