si=2*(round(rand(1,sbit))-1/2);
Mostrar comentarios más antiguos
i am trying to generate a random signal with only +1 & -1 the code works the only problem that i donot under stand way we put the 2 and -1/2
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!