File Exchange

image thumbnail

Faster base2dec Function

version 1.0.2 (3.44 KB) by Friedrich
This is a fast replacement for base2dec. It has the same syntax as base2dec and does not require compiling.

1 Download

Updated 20 Aug 2018

View License

base2dec is a nice function but slow for large arrays and quite RAM hungry.
This version is a lot faster and minimizes RAM usage. It has the same input-output behavior as base2dec.

To make use of this improvement, just replace all your base2dec calls with nbase2dec.

Included are two files: nbase2dec.m and fbase2dec.m

nbase2dec has the same error checks as base2dec
fbase2dec skips error checks to be a little faster

Cite As

Friedrich (2019). Faster base2dec Function (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



updated description and tags


license.txt now in lower case letters

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Faster dec2base Function

Inspired: Faster dec2base Function