Clear Filters
Clear Filters

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

2 views (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)

Community Treasure Hunt

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

Start Hunting!