Pseudo Noise Sequence

16 ビュー (過去 30 日間)
sumit choubey
sumit choubey 2011 年 11 月 22 日
How to generate a PN sequence using an independent seed for different value of a variable.

回答 (2 件)

Fangjun Jiang
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.

Daniel Shub
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/
  2 件のコメント
sumit choubey
sumit choubey 2011 年 11 月 22 日
well i need to generate different noise like sequence for different values of a function ...
i mean suppose function is [1 2 3 4 5 6 7 8 9]
for 1 i need to generate a PN sequence tha i can generate every time for 1..
and for 2 another and so on ...
thanx for the link let me try it ...thanx again
sumit choubey
sumit choubey 2011 年 11 月 22 日
basically i need to regenerate these PN sequence again and again

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by