decimal matrix to binary matrix
Afficher commentaires plus anciens
How can i convert decimal value of a matrix to binary value with corect position?
Réponses (1)
Mischa Kim
le 7 Avr 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 commentaire
Fouad BOUDJIRA
le 12 Fév 2019
but this gives a cell input , that wont work with fprntf function !!!!!
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!