You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
this will do the easy conversion for you without any truncating or improper values. It puts it in matrix format for easier manipulation.
hex2bin('0123456789abcdef')
ans =
Columns 1 through 18
0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1
Columns 19 through 36
0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
Columns 37 through 54
1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1
Columns 55 through 64
0 1 1 1 1 0 1 1 1 1
Cite As
Michael Chenoweth (2026). Hexadecimal to binary (https://www.mathworks.com/matlabcentral/fileexchange/24282-hexadecimal-to-binary), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.13 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
