How to convert 27625 to base 10 from base 7 ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Abishek V Iyer
am 19 Jun. 2015
Kommentiert: Katalin
am 19 Jun. 2015
Why do i get an error while trying to convert the number from base 7 to 10?
0 Kommentare
Akzeptierte Antwort
Katalin
am 19 Jun. 2015
It cannot have number 7 in it if it is in base 7. Otherwise you would do it like this: base2dec('26625',7)
2 Kommentare
Katalin
am 19 Jun. 2015
You are welcome! :-) The syntax is: d = base2dec('strn', base); It has to be a string (that's why the ''), as for example higher than 10 base numbers have letters in them e.g. base 16 has abcdef characters in the numbers.
Weitere Antworten (1)
Guillaume
am 19 Jun. 2015
Base 7 uses seven symbols. Traditionally, and in matlab, these are digits 0 to 6.
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!