How to create a matrix (64 X 6) with all numbers from 1 to 64, written by binary code?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Enrica Brunetti
el 1 de Jun. de 2019
Respondida: dpb
el 1 de Jun. de 2019
I try to use this function , but I have just a matrix(64 X 1)
D = [ ];
D = str2num(dec2bin(0:63, 6));
The solution must be :
D = [ 0 0 0 0 0 0
0 0 0 0 1 0
0 0 0 0 1 1
0 0 0 1 0 0
.................
1 1 1 1 1 1]
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Elementary Math 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!