Effacer les filtres
Effacer les filtres

how to write *normrnd* by myself?

2 vues (au cours des 30 derniers jours)
alireza kooshafar
alireza kooshafar le 16 Fév 2016
I want to write normrnd 's code by myself but I have no idea about it. thanks for help

Réponse acceptée

Matt J
Matt J le 16 Fév 2016
Modifié(e) : Matt J le 16 Fév 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 commentaires
Matt J
Matt J le 16 Fév 2016
I can't see how you would do that, except by using a Central Limit Theorem approximation.
alireza kooshafar
alireza kooshafar le 17 Fév 2016
thanks a million

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by