BIN2HEX

版本 1.0.0.0 (1.5 KB) 作者: Richard Medlock
Converts Binary strings to HEX
7.9K 次下载
更新时间 2002/7/19

无许可证

Converts binary strings of any length to hexadecimal pairs. Adds leading zeros if there is not an even number of hex bits.

The zip file contains the 'isodd' function which is required, and the 'FormatHexStr' function to put spaces or convert to a cell array.

Example:

bin2hex('11101001')

ans =

E9

bin2hex('11011101111110111')

ans =

01BBF7

引用格式

Richard Medlock (2024). BIN2HEX (https://www.mathworks.com/matlabcentral/fileexchange/1975-bin2hex), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R12.1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0