2D plot for polynomial
18 次查看(过去 30 天)
显示 更早的评论
How to draw a 2d ploy for polynomial. for example: 6x^5+5x^4
0 个评论
采纳的回答
Dyuman Joshi
2023-10-13
Use fplot
2 个评论
Dyuman Joshi
2023-10-16
If you are asking how to use fplot, you should take a look at the link I mentioned.
You can also take a look my comment on your previous question for reference - https://in.mathworks.com/matlabcentral/answers/2032314-3d-plot-for-polynomial#comment_2919399
If you are not asking that, please be more specific.
更多回答(1 个)
Image Analyst
2023-10-16
That's a 1-D polynomial curve. There is one independent input variable. You can define the range of it with linspace and then use plot
x = linspace(-3, 3, 1000);
y = 6*x.^5 + 5*x.^4;
plot(x, y, 'b-', 'LineWidth', 2);
grid on;
xlabel('x');
ylabel('y');
To learn other fundamental concepts, invest 2 hours of your time here:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

