Help plotting two lines on same graph

3 ビュー (過去 30 日間)
Jenny Briggs
Jenny Briggs 2016 年 3 月 12 日
コメント済み: Jenny Briggs 2016 年 3 月 12 日
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

採用された回答

Ced
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.
  1 件のコメント
Jenny Briggs
Jenny Briggs 2016 年 3 月 12 日
Thank you so much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by