MATLAB: How could I plot y=(x-2)/(2x+3)

functionplot

So far I've got:
x = [-100 : 1 : 100];
y = (x - 2) / (2*x + 3);
plot(x,y, 'r')
grid on, axis equal
When I run it, it brings up the plot but the graph is missing.

Best Answer

You forgot the dot (.) operator to do element-wise division:
y = (x - 2) ./ (2*x + 3);
↑ ← DOT GOES HERE!