Clear Filters
Clear Filters

can anyone tell me how to plot, plots of two different programs in a single plot?

1 view (last 30 days)
i have two different programs and i need to have comparison plot i.e both outputs in a single plot.

Accepted Answer

Alexander
Alexander on 1 May 2023
use "hold on" between both plottings:
plot(a,b)
hold on
plot(c,d)
hold off

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!