24小时热门版块排行榜    

查看: 2374  |  回复: 1

monitor2885

至尊木虫 (职业作家)

队长

[求助] 如何使用rng设置随机种子

旧版本的matlab用这个语句设置随机种子randn ('state', sum (100 * clock))
新版本的matlab说,建议使用rng。请问,上面的语句怎么改成和rng有关的语句?
In older versions of MATLAB, you controlled the random number generators that rand and randn used by calling those functions with the seed, state, or twister inputs. That syntax is not recommended. Use the rng function instead. The older generators that MATLAB uses with the seed (MATLAB v4 generator) and state (MATLAB v5 generator) inputs are not recommended.
回复此楼
Retirement
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

monitor2885

至尊木虫 (职业作家)

队长

谁知道rng怎么用呀
Retirement
2楼2012-01-19 06:22:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 monitor2885 的主题更新
信息提示
请填处理意见