using normrnd function in a loop
1 次查看(过去 30 天)
显示 更早的评论
If I use normrnd function in a loop, every times that normrnd runs in a new loop it will give me the same number? ( if I set parameters to a constant value);
for i = 1 :10
x(i) = normrnd(1,0.2);
end
0 个评论
采纳的回答
the cyclist
2013-9-12
No. It will give a different number on every call (until you reach the end of the pseudorandom generator's period, which is enormous).
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!