Faster dec2base Function

This is a fast replacement for dec2base. It has the same syntax as dec2base and does not require compiling.

이 제출물을 팔로우합니다

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 (2026). Faster dec2base Function (https://kr.mathworks.com/matlabcentral/fileexchange/68581-faster-dec2base-function), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: Faster base2dec Function

도움 준 파일: Faster base2dec Function

카테고리

Help CenterMATLAB Answers에서 Loops and Conditional Statements에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0