Number Base Conversion CONVTO

Converts numbers to different bases. Only works for bases 2 through 10 using recursion.

You are now following this Submission

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.

Cite As

Daniel (2026). Number Base Conversion CONVTO (https://www.mathworks.com/matlabcentral/fileexchange/45769-number-base-conversion-convto), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Convert Image Type in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Just changed the description a bit

1.0.0.0