Byte manipulation and Endian conversion in MATLAB

버전 1.0.0.1 (8.63 KB) 작성자: Gautam Vallabha
A demonstration of MATLAB's built-in facilities for unpacking integers into individual bytes (and vi
다운로드 수: 2.8K
업데이트 날짜: 2016/9/1

라이선스 보기

MATLAB has several function that allow byte-level manipulation of numeric data types (such as DOUBLE, INT32, or UINT16). These can be used to easily convert a multibyte integer into individual bytes or vice versa, check the endian-ness of a system, or convert between big and little-endian formats.
This submission consists of an m-file (ByteConversion.m) and its published HTML version (ByteConversion.html). These files demonstrate the different byte-manipulation abilities.

Table of Contents
-----------------

* Creating an integer variable
* Destructive casting - I
* Destructive casting - II
* Non-destructive casting
* Converting an integer to a sequence of bytes
* Converting a floating-point value to a sequence of bytes
* Converting a sequence of bytes to an integer
* Checking the Endianness of the system
* Little-endian and Big-endian conversions
* Help on functions

인용 양식

Gautam Vallabha (2024). Byte manipulation and Endian conversion in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/17569-byte-manipulation-and-endian-conversion-in-matlab), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Updated license

1.0.0.0