how to crreate an array
Mostrar comentarios más antiguos
lets say i have an array x=[1 0 1] how can i sample every bit 10 times. output will be 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1
Respuesta aceptada
Más respuestas (1)
Steven Lord
el 5 de Nov. de 2017
0 votos
Use the repelem function.
1 comentario
Awesomer
el 5 de Nov. de 2017
Categorías
Más información sobre Logical 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!