Hexadecimal to binary
% HEX2BIN(h) returns the binary representation of h as a string.
%
%
% HEX2BIN(h,n) produces a binary representation with at least
% N bits.
%
% Example
% hex2bin('f') returns '1111'
% hex2bin('fa') returns '1111 1010'
% hex2bin(['f' 'a'],4) returns
% 0010 1111
% See also BIN2DEC, DEC2HEX, DEC2BASE.
%
% This function implemented with the help of hex2dec and dec2bin
Cite As
Tamir Suliman (2023). Hexadecimal to binary (https://www.mathworks.com/matlabcentral/fileexchange/39645-hexadecimal-to-binary), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |