Effacer les filtres
Effacer les filtres

How to plot separate scripts into one plot

2 vues (au cours des 30 derniers jours)
g
g le 11 Juil 2018
If I have two Matlab scripts, for example "apple.m" and "ball.m" that plot with the same axes (just different data), etc. how can I plot them on the same plot? Thank you.

Réponses (1)

Walter Roberson
Walter Roberson le 12 Juil 2018
Much of the time, you can just run the first one, then command
hold on
and then run the second one.
This will not always work; when it does not work, then typically it is necessary to modify the code.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by