Plotting functions in matlab

Hi, I'm new to matlab
How can I plot multiple functions on same graph ?

回答 (1 件)

KSSV
KSSV 2019 年 6 月 7 日
編集済み: KSSV 2019 年 6 月 7 日

1 投票

Use hold on while plotting.
figure
hold on
plot(rand(10,1)) ;
plot(rand(10,1)) ;
legend()
To see different types of plots possible in MATLAB refer:

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

タグ

質問済み:

2019 年 6 月 7 日

編集済み:

2019 年 6 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by