How could I plot y=(x-2)/(2x+3)?
显示 更早的评论
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.
采纳的回答
更多回答(2 个)
Richard Kadar-Nemeth
2016-12-3
0 个投票
1 个评论
Star Strider
2016-12-3
My pleasure.
Leaving a space between the dot and the operator will throw an ‘Unexpected MATLAB operator.’ error.
Bhargav k
2020-10-8
0 个投票
Plot the graph of y = x^2 − 2x − 3.
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!