how to crreate an array
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Awesomer
el 5 de Nov. de 2017
Comentada: Awesomer
el 5 de Nov. de 2017
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
0 comentarios
Respuesta aceptada
Star Strider
el 5 de Nov. de 2017
Editada: Star Strider
el 5 de Nov. de 2017
Try this:
x=[1 0 1];
N = 10;
Output = reshape(repmat(x(:)', N, 1), 1, [])
2 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!