Why cant' I plot this graph?
显示 更早的评论
回答(1 个)
David Hill
2020-11-23
You need .^ for elementwise array operations
x = linspace(0,2,250);
y = 15*x.^3-9*x.^2-36*x+36;
plot(y,x)
类别
在 帮助中心 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!