how to create two bell shape curves
Ältere Kommentare anzeigen
with the areas under these curves equal to 1, the same mean but different standard deviations. Thanks!
Akzeptierte Antwort
Weitere Antworten (2)
jenka
am 24 Apr. 2013
0 Stimmen
Wayne King
am 24 Apr. 2013
Hi Jenka, you cannot just do sum(y), you are forgetting about the very important dx in the integral
x = -10:0.01:10;
y = normpdf(x,0,1);
y1 = normpdf(x,0,sqrt(2));
dx = mean(diff(x));
sum(y*dx)
sum(y1*dx)
1 Kommentar
jenka
am 25 Apr. 2013
Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!