Faster dec2base Function
dec2base 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 dec2base.
To make use of this improvement, just replace all your dec2base calls with ndec2base.
Included are two files: ndec2base.m and fdec2base.m
ndec2base has the same error checks as dec2base
fdec2base skips error checks to be a little faster, is only faster on small arrays
Function is fastest for bases 10 and lower.
For best results call the function on a whole array instead of calling it on each element.
Citar como
Friedrich (2026). Faster dec2base Function (https://es.mathworks.com/matlabcentral/fileexchange/68581-faster-dec2base-function), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
