convert binary vector value into decimal
Afficher commentaires plus anciens
i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43
Réponses (3)
Mischa Kim
le 26 Fév 2014
Raza, use
bin2dec(num2str(a))
Azzi Abdelmalek
le 26 Fév 2014
Modifié(e) : Azzi Abdelmalek
le 26 Fév 2014
a= [0 0 1 0 1 0 1 1];
b=bin2dec(sprintf('%d',a))
Andrei Bobrov
le 26 Fév 2014
polyval(a,2)
Catégories
En savoir plus sur Logical 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!