Help plotting two lines on same graph
3 次查看(过去 30 天)
显示 更早的评论
Hi, I want to plot these two lines on the same graph:
plot((1/2)*[pl(1),pr(1)], (1/2)*[pl(1),pr(1)]);
plot([pr(1),(1/2)*pr(1)], [pl(2), (1/2)*pr(1)]);
Where pr=[0;0]
and pl=[1;0]
Any help would be greatly appreciated, Thanks
0 个评论
采纳的回答
Ced
2016-3-12
Call "hold on" after the first plot. Also, you could use the "line" function instead of "plot" here if you like.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!