Line graphs and Scatter plots

Is there a way to add a line graph to a scatter plot graph if they have differing equations?

 Accepted Answer

Hello,
The command 'hold on' will retain the existing plots on axes.
scatter()
hold on
plot()

2 Comments

thank you
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)

Products

Community Treasure Hunt

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

Start Hunting!