how to create two bell shape curves
Afficher commentaires plus anciens
with the areas under these curves equal to 1, the same mean but different standard deviations. Thanks!
Réponse acceptée
Plus de réponses (2)
jenka
le 24 Avr 2013
0 votes
Wayne King
le 24 Avr 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 commentaire
jenka
le 25 Avr 2013
Catégories
En savoir plus sur Linear and Nonlinear Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!