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

i have two different programs and i need to have comparison plot i.e both outputs in a single plot.

 Accepted Answer

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 1 May 2023

Commented:

on 1 May 2023

Community Treasure Hunt

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

Start Hunting!