how to create two bell shape curves
古いコメントを表示
with the areas under these curves equal to 1, the same mean but different standard deviations. Thanks!
採用された回答
その他の回答 (2 件)
Wayne King
2013 年 4 月 24 日
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)
カテゴリ
ヘルプ センター および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!