how to write *normrnd* by myself?

2 Ansichten (letzte 30 Tage)
alireza kooshafar
alireza kooshafar am 16 Feb. 2016
I want to write normrnd 's code by myself but I have no idea about it. thanks for help

Akzeptierte Antwort

Matt J
Matt J am 16 Feb. 2016
Bearbeitet: Matt J am 16 Feb. 2016
Just use
x=randn(m,n);
y=A*x+B;
and choose A and B appropriate to the sigma, mu that you want.
  5 Kommentare
Matt J
Matt J am 16 Feb. 2016
I can't see how you would do that, except by using a Central Limit Theorem approximation.
alireza kooshafar
alireza kooshafar am 17 Feb. 2016
thanks a million

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by