how do I fix the seed in the trnd function
Mostrar comentarios más antiguos
Dear all,
I use matlab 2012 and I want to generate values from a student t distribution. I use the function "trnd". HOw can I fix the see in this function
thanks
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 10 de Nov. de 2012
0 votos
Use the rng() function before you call trnd()
2 comentarios
Sabbas
el 10 de Nov. de 2012
Wayne King
el 10 de Nov. de 2012
0 votos
Don't do that. Don't call rand('state', ) before using rng.
rng seeds the random number generator for you. Remove that from and your code and just use rng() to do the work.
1 comentario
Sabbas
el 10 de Nov. de 2012
Categorías
Más información sobre Statistics and Machine Learning Toolbox 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!