mean of 10 and a variance of 30

2 ビュー (過去 30 日間)
S.M
S.M 2022 年 10 月 26 日
コメント済み: Image Analyst 2022 年 10 月 26 日
How can i distribution is normal with a mean of 10 and a variance of 30.(for n samples;n=50)
  3 件のコメント
S.M
S.M 2022 年 10 月 26 日
size =[1 50] ;
sigma = 30 ;
mu = 10 ;
X = normrnd(mu,sigma,size);
is it true?
Image Analyst
Image Analyst 2022 年 10 月 26 日
Did you see my answer down in the official Answer section below?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2022 年 10 月 26 日
Try this:
n = 50;
r = 10 + 30 * randn(1, n);
theActualMean = mean(r)
theActualMean = 11.4852
theActualSD = std(r)
theActualSD = 33.1631

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by