Pseudo Noise Sequence
조회 수: 16 (최근 30일)
이전 댓글 표시
How to generate a PN sequence using an independent seed for different value of a variable.
댓글 수: 0
답변 (2개)
Fangjun Jiang
2011년 11월 22일
rand()?
for k=1:3
rand('seed',k);
a=rand(1,5)
end
The generated random numbers will be repeatable.
댓글 수: 0
Daniel Shub
2011년 11월 22일
Not sure what you are really asking. There have been a number of different ways of seeding the random number generator(s). This might be a useful starting place: http://blogs.mathworks.com/loren/2008/11/05/new-ways-with-random-numbers-part-i/
[EDIT] This link might be better: http://blogs.mathworks.com/loren/2011/07/07/simpler-control-of-random-number-generation-in-matlab/
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!