Summation of graphs to one graph
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have multiple graphs and i wand to sum all these graphs together to have a simple one. (adding them like 1+1=2)
3 Kommentare
Antworten (1)
Leepakshi
am 28 Feb. 2025
Hi Bader,
As correctly said in comments, for plotting multiple normal distributions overlaying each other probably you can use the hold on keyword present in MATLAB.
you can use it as.
x1 = [1 2 3 4 5];
y1 = [2 4 6 7 10];
x2 = [5 4 3 2 1];
y2 = [2 3 5 8 10];
plot(x1, y1);
hold on
plot(x2, y2);
For more information you can refer below documentation on hold on:
Hope that helped!
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!