Azzera filtri
Azzera filtri

how to write *normrnd* by myself?

2 visualizzazioni (ultimi 30 giorni)
alireza kooshafar
alireza kooshafar il 16 Feb 2016
I want to write normrnd 's code by myself but I have no idea about it. thanks for help

Risposta accettata

Matt J
Matt J il 16 Feb 2016
Modificato: Matt J il 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 Commenti
Matt J
Matt J il 16 Feb 2016
I can't see how you would do that, except by using a Central Limit Theorem approximation.
alireza kooshafar
alireza kooshafar il 17 Feb 2016
thanks a million

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by