This code is a simple recursion formula used to convert a number in base 10 to a number in base b.
Because it's a recursive method (mathematical), it's use is limited to base 10.
usage : convto(number in base 10, base b to convert to)
ex:
convto(100,6) = 244
because 2*36 + 4*6 + 4*1 = 72 + 24 + 4= 100
Steal my code... knowledge should be shared. Just don't try and sell it... unless you need lunch money and you've exhausted all your options, then I understand.
引用
Daniel (2024). Number Base Conversion CONVTO (https://www.mathworks.com/matlabcentral/fileexchange/45769-number-base-conversion-convto), MATLAB Central File Exchange. 取得済み .
MATLAB リリースの互換性
作成:
R2012b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Graphics > Images > Convert Image Type >
Help Center および MATLAB Answers で Convert Image Type についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!