Conversion of any base (n) to a base 10 number?

9 ビュー (過去 30 日間)
Alex Wazevich
Alex Wazevich 2019 年 2 月 7 日
回答済み: the cyclist 2019 年 2 月 7 日
I know the mathematical process associated with doing this conversion, but I am new to Matlab and don't know how to program it. For example, if given a number 423.032 in base 5, the conversion is (4*5^2)+(2*5^1)+(3*5^0)+(0*5^-1)+(3*5^-2)+(2*5^-3). The answer I get in base ten is 113.136. The program I need to create is for any base n to a base ten number. Any help would be greatly appreciated.

回答 (1 件)

the cyclist
the cyclist 2019 年 2 月 7 日
There is a thorough answer to this question here.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by