how do I fix the seed in the trnd function
이전 댓글 표시
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
채택된 답변
추가 답변 (2개)
Walter Roberson
2012년 11월 10일
0 개 추천
Use the rng() function before you call trnd()
댓글 수: 2
Sabbas
2012년 11월 10일
Wayne King
2012년 11월 10일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!