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
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 Exchange 中查找有关 Creating, 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