MATLAB Answers

plotting 2 graphs on the same axes

16 views (last 30 days)
Anika Lee
Anika Lee on 21 Oct 2020
Answered: KSSV on 21 Oct 2020
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!

  0 Comments

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 21 Oct 2020
Use the hold function.

  0 Comments

Sign in to comment.

More Answers (1)

KSSV
KSSV on 21 Oct 2020
Read about hold on.
plot(rand(1,10))
hold on
plot(rand(1,10))

  0 Comments

Sign in to comment.

Tags

Products

Community Treasure Hunt

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

Start Hunting!

Translated by