Number Base Conversion CONVFROM

バージョン 1.0.0.0 (235 Bytes) 作成者: Daniel
Converts numbers from different bases. Only works for bases 2 through 10 using recursion.
ダウンロード: 151
更新 2014/3/6

ライセンスの表示

This code is a simple recursion formula used to convert a number in base b to a number in base 10.
Because it's a recursive method (mathematical), it's use is limited to base 10.

usage : convfrom(number in base b, base b to convert from)

ex:

convto(244,6) = 100
because 2*36 + 4*6 + 4*1 = 72 + 24 + 4= 100

引用

Daniel (2024). Number Base Conversion CONVFROM (https://www.mathworks.com/matlabcentral/fileexchange/45770-number-base-conversion-convfrom), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2012b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersImage Type Conversion についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0