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!