Create a two-point distribution?
Mostrar comentarios más antiguos
I want to multiply each element of a vector by a random variable X that takes values +1 and -1 with probability 1/2. How do I create this random variable?
Respuestas (1)
dk
el 17 de Oct. de 2019
1 voto
N=100;
x=sign(rand(N,1)-0.5);
1 comentario
kevin cecere palazzo
el 17 de Oct. de 2019
Categorías
Más información sobre Inverse Gaussian Distribution en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!