how to write *normrnd* by myself?

2 ビュー (過去 30 日間)
alireza kooshafar
alireza kooshafar 2016 年 2 月 16 日
コメント済み: alireza kooshafar 2016 年 2 月 17 日
I want to write normrnd 's code by myself but I have no idea about it. thanks for help

採用された回答

Matt J
Matt J 2016 年 2 月 16 日
編集済み: Matt J 2016 年 2 月 16 日
Just use
x=randn(m,n);
y=A*x+B;
and choose A and B appropriate to the sigma, mu that you want.
  5 件のコメント
Matt J
Matt J 2016 年 2 月 16 日
I can't see how you would do that, except by using a Central Limit Theorem approximation.
alireza kooshafar
alireza kooshafar 2016 年 2 月 17 日
thanks a million

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by