Line graphs and Scatter plots

3 views (last 30 days)
Jordan Martin
Jordan Martin on 20 Feb 2021
Commented: Mario Malic on 21 Feb 2021
Is there a way to add a line graph to a scatter plot graph if they have differing equations?

Accepted Answer

Mario Malic
Mario Malic on 20 Feb 2021
Hello,
The command 'hold on' will retain the existing plots on axes.
scatter()
hold on
plot()
  2 Comments
Mario Malic
Mario Malic on 21 Feb 2021
You're welcome, you can accept my answer (blue button) if it solves your question. Thanks in advance.

Sign in to comment.

More Answers (0)

Categories

Find more on Discrete Data Plots in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!