generating random variables with expected value of one and finite variation.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mohammad Sayeed
il 23 Gen 2015
Commentato: Mohammad Sayeed
il 23 Gen 2015
How can I generate positive i.i.d random variables with the expected value of one and finite variation in MATLAB? Anyone help please.
0 Commenti
Risposta accettata
Torsten
il 23 Gen 2015
a = 1;
y = a*randn(1000,1) + 1;
creates 1000 normally distributed random numbers with expected value of 1 and variance a.
Best wishes
Torsten.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!