How can I create a random array from a distribution?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gabs
am 23 Okt. 2015
Kommentiert: the cyclist
am 23 Okt. 2015
I was wondering how can I create an array of certain dimensions (i.e. 1000x1) from a distribution object?
0 Kommentare
Akzeptierte Antwort
the cyclist
am 23 Okt. 2015
N = 1000;
pd = makedist('Normal','mu',75,'sigma',10);
r = pd.random(N,1);
4 Kommentare
the cyclist
am 23 Okt. 2015
I'm not sure exactly what you mean. A truncated normal is not a normal. Maybe you need something like a beta distribution, where you can choose parameters that make it symmetric, but it has a finite range?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!