How to exhaust all the binary array of length N?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Lee
el 22 de Abr. de 2023
Respondida: Walter Roberson
el 22 de Abr. de 2023
Hi everyone! I hope to do the following thing.
For an array of N components and each component can only take 1 or 0, I hope to exhaust all the possible assignment of the array.
Specifically I want to get a matrix with 2^N rows and N columns with each row corresponding to a possible case. How should I do this? Is there a MATLAB built-in function to do this?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays 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!