Plotting functions in matlab

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

Answers (1)

KSSV
KSSV on 7 Jun 2019
Edited: KSSV on 7 Jun 2019
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:

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Tags

Asked:

on 7 Jun 2019

Edited:

on 7 Jun 2019

Community Treasure Hunt

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

Start Hunting!