If you literally want the sum (as opposed to some kind of joint probability), you can just add the two:
plot(w1,gauss1+gauss2,'r')
You can do that here because you calculated gauss1 and gauss2 over the same range.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!