Efficient convertors between binary and decimal numbers

버전 1.0.0.0 (1.48 KB) 작성자: Zacharias Voulgaris
Alternatives to the built-in functions bin2dec & dec2bin, exhibiting a somewhat faster performance.
다운로드 수: 1.9K
업데이트 날짜: 2010/1/21

라이선스 보기

These programs were developed for fast conversions between binary and decimal integers (there are other programs by fellow Matlab-users, dealing with fractions). They can be useful when the binary numbers are in vector form instead of strings.

b2d takes a binary number in the form of an array and calculates the equivalent decimal one. Nothing fancy, but quite effective as a component of a program that needs to be efficient in terms of computational overhead.

d2b is the symmetrical program, taking a decimal number and providing the equivalent binary one, in the form of an array.

Usage: y = b2d(x), y = d2b(x)

인용 양식

Zacharias Voulgaris (2025). Efficient convertors between binary and decimal numbers (https://kr.mathworks.com/matlabcentral/fileexchange/26447-efficient-convertors-between-binary-and-decimal-numbers), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Type Conversion에 대해 자세히 알아보기
도움

도움 준 파일: Binary encoding method, Random combinatorics

Community Treasure Hunt

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

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