Number Base Conversion CONVFROM
Version 1.0.0.0 (235 Bytes) by
Daniel
Converts numbers from different bases. Only works for bases 2 through 10 using recursion.
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
Cite As
Daniel (2024). Number Base Conversion CONVFROM (https://www.mathworks.com/matlabcentral/fileexchange/45770-number-base-conversion-convfrom), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Image Type Conversion >
Find more on Image Type Conversion in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |