plotting 2 graphs on the same axes

I have to plot an x-y equation and also a data set of x,y coordinates on the same axes, but i cant figure out how to have them on the same graph. Help!

 採用された回答

Star Strider
Star Strider 2020 年 10 月 21 日

1 投票

Use the hold function.

その他の回答 (1 件)

KSSV
KSSV 2020 年 10 月 21 日

1 投票

Read about hold on.
plot(rand(1,10))
hold on
plot(rand(1,10))

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

タグ

質問済み:

2020 年 10 月 21 日

回答済み:

2020 年 10 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by