How to convert 27625 to base 10 from base 7 ?
1 次查看(过去 30 天)
显示 更早的评论
Why do i get an error while trying to convert the number from base 7 to 10?
0 个评论
采纳的回答
Katalin
2015-6-19
It cannot have number 7 in it if it is in base 7. Otherwise you would do it like this: base2dec('26625',7)
2 个评论
Katalin
2015-6-19
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.
更多回答(1 个)
Guillaume
2015-6-19
Base 7 uses seven symbols. Traditionally, and in matlab, these are digits 0 to 6.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!