decimal matrix to binary matrix
Mostrar comentarios más antiguos
How can i convert decimal value of a matrix to binary value with corect position?
Respuestas (1)
Mischa Kim
el 7 de Abr. de 2014
Kiran, try
B = arrayfun(@(ii,jj) {dec2bin(A(ii,jj))},repmat((1:size(A,1))',1,size(A,2)),repmat((1:size(A,2)),size(A,1),1));
1 comentario
Fouad BOUDJIRA
el 12 de Feb. de 2019
but this gives a cell input , that wont work with fprntf function !!!!!
Categorías
Más información sobre Creating and Concatenating Matrices 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!