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!