Hexadecimal to binary

The hex2bin function in MATLAB is used to convert a hexadecimal string to a binary string.

Download
Download

You are now following this Submission

Cite As

Tamir Suliman (2026). Hexadecimal to binary (https://in.mathworks.com/matlabcentral/fileexchange/39645-hexadecimal-to-binary), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0

update the reference code

Download
1.1.0

If N is not specified, the default value of 2 is used.

Download
1.0.0

Download