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!