Info
此问题已关闭。 请重新打开它进行编辑或回答。
Is drawing multiple samples from randn the same as invoking randn for appropriate size ?
1 次查看(过去 30 天)
显示 更早的评论
Does the distribution of the random samples alter if I call randn(size, number_of_samples) instead of calling randn(size,1) in a loop of number_of_samples?
PS: I am looking to do stochastic computation for large samples.
0 个评论
回答(1 个)
Star Strider
2016-1-23
It’s the same whether you call it repeatedly in a loop or ask it to create a matrix.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!