MATLAB: Problem with simple division like Y./X

MATLAB

Hi,
I am plotting X Vs Y and trying to display X vs Y./X
I am not getting a symmetric plot about the origin.
x=-1:0.001:1;
y=1.5*x+0.5;
plotyy(x,y,x,abs(y./x));
Kindly let me know the solution to the problem.
best regards

Best Answer

This is the plot from the data u shared.
For plotyy(a1,b1,a2,b2)
b1 vs a1 is plotted on the left side while b2 vs a2 on the right
Related Question