Number Base Conversion CONVFROM

Converts numbers from 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 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 (2026). Number Base Conversion CONVFROM (https://www.mathworks.com/matlabcentral/fileexchange/45770-number-base-conversion-convfrom), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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