Hello everyone. I converted 4 into binary and got 100 . my problem is that i want to use this 100 as a decimal but the matlab is obviously treating it as a binary number. Please help
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
please help
0 commentaires
Réponse acceptée
Mischa Kim
le 28 Fév 2014
Modifié(e) : Mischa Kim
le 28 Fév 2014
You could
my_bindec = str2num(dec2bin(4))/5
ans =
20
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Data Type Conversion 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!