convert binary vector value into decimal
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43
0 commentaires
Réponses (3)
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))
0 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!