trying to make a random number sequence similar to an MLS sequence
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Daniel Shub
el 4 de Abr. de 2012
This is nothing like an MLS sequence. What you are looking for is often called Bernoulli noise.
Matt Fig
el 2 de Nov. de 2012
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?
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Measurements and Spatial Audio en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!