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类别
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Image Type Conversion >
在 Help Center 和 MATLAB Answers 中查找有关 Image 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 |