How to plot separate scripts into one plot

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.

Antworten (1)

Walter Roberson
Walter Roberson am 12 Jul. 2018

0 Stimmen

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.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

g
g
am 11 Jul. 2018

Beantwortet:

am 12 Jul. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by