How to generate data with a specific distribution
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Matlab provides random number generating from a uniform distribution (rand). Is there a way to generate data from other distributions that Matlab supports like Chi-Square??
Sajad
1 Commento
PRIYANKA upadhyay
il 3 Lug 2013
hello, u have write here that Matlab provides random number generating from a uniform distribution (rand)....can u pls tell exactly how can i generate random nos...
Risposte (2)
Laura Proctor
il 8 Lug 2011
Use the random function. Here's an example of creating a 10x3 matrix of random numbers using a Chi-Square distribution with 2 degrees of freedom:
y = random('chi2',2,10,3)
0 Commenti
Oleg Komarov
il 8 Lug 2011
Otherwise to get a chi-squared just generate standard normals and sum their squares: http://en.wikipedia.org/wiki/Chi-square_distribution
0 Commenti
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!