trying to make a random number sequence similar to an MLS sequence
1 回表示 (過去 30 日間)
古いコメントを表示
I'm trying to create a random number sequence like this one: -
x = 2*rand(N,1)-1; % generate input noise signal
except instead of the numbers being at all different values between -1 and 1, I'd like them to be either -1 or 1 only.
Does anyone know how I might do this?
2 件のコメント
Daniel Shub
2012 年 4 月 4 日
This is nothing like an MLS sequence. What you are looking for is often called Bernoulli noise.
Matt Fig
2012 年 11 月 2 日
Tom's question
I'm trying to create a random number sequence like this one: -
x = 2*rand(N,1)-1; % generate input noise signal
except instead of the numbers being at all different values between -1 and 1, I'd like them to be either -1 or 1 only.
Does anyone know how I might do this?
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Measurements and Spatial Audio についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!