Plotting polynomials side by side.
1 次查看(过去 30 天)
显示 更早的评论
Hello,
Is it possible to plot two polynomials next to each other as opposed to on top of each other? The problem being they would both need to originally extend from x values from -1 to 1, but then those x values wouldn't be the same when plotted side by side and the graph would change. This is my approach so far:
x = -1:0.1:1;
c = [-5 4 1 7];
y = polyval(c,x);
plot(x,y)
hold on
c2 = [4 -2 1 9 2];
y2 = polyval(c2,x);
plot(x,y2)
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!