You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
Cite As
Richard Medlock (2026). BIN2HEX (https://se.mathworks.com/matlabcentral/fileexchange/1975-bin2hex), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.49 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
