How could I plot y=(x-2)/(2x+3)?
Show older comments
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.
Accepted Answer
More Answers (2)
Richard Kadar-Nemeth
on 3 Dec 2016
0 votes
1 Comment
Star Strider
on 3 Dec 2016
My pleasure.
Leaving a space between the dot and the operator will throw an ‘Unexpected MATLAB operator.’ error.
Bhargav k
on 8 Oct 2020
0 votes
Plot the graph of y = x^2 − 2x − 3.
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!