Borrar filtros
Borrar filtros

Random secuence {-3,-1,1,3}

1 visualización (últimos 30 días)
pizarro
pizarro el 22 de Oct. de 2014
Editada: Rick Rosson el 22 de Oct. de 2014
Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?

Respuestas (1)

Rick Rosson
Rick Rosson el 22 de Oct. de 2014
Editada: Rick Rosson el 22 de Oct. de 2014
x = 2*randi([0 3],100,1) - 3;

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by