フィルターのクリア

How to convert 27625 to base 10 from base 7 ?

2 ビュー (過去 30 日間)
Abishek V Iyer
Abishek V Iyer 2015 年 6 月 19 日
コメント済み: Katalin 2015 年 6 月 19 日
Why do i get an error while trying to convert the number from base 7 to 10?

採用された回答

Katalin
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 件のコメント
Abishek V Iyer
Abishek V Iyer 2015 年 6 月 19 日
Thank you very much ... Also what is the difference between having = 'xxxxx' and simply xxxx (without the inverted commas) ?
Katalin
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
Guillaume 2015 年 6 月 19 日
Base 7 uses seven symbols. Traditionally, and in matlab, these are digits 0 to 6.
  1 件のコメント
Abishek V Iyer
Abishek V Iyer 2015 年 6 月 19 日
thank you very much

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by