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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
please help
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 28 Feb. 2014
Bearbeitet: Mischa Kim
am 28 Feb. 2014
You could
my_bindec = str2num(dec2bin(4))/5
ans =
20
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!