Faster dec2base Function

버전 1.0.0 (3.18 KB) 작성자: Friedrich
This is a fast replacement for dec2base. It has the same syntax as dec2base and does not require compiling.
다운로드 수: 28
업데이트 날짜: 2018/8/20

라이선스 보기

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.

인용 양식

Friedrich (2024). Faster dec2base Function (https://www.mathworks.com/matlabcentral/fileexchange/68581-faster-dec2base-function), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0