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
인용 양식
Friedrich (2024). Faster base2dec Function (https://www.mathworks.com/matlabcentral/fileexchange/68575-faster-base2dec-function), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Data Type Conversion에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!