BIN2HEX

Converts Binary strings to HEX
7,9K téléchargements
Mise à jour 19 juil. 2002

Aucune licence

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

Citation pour cette source

Richard Medlock (2026). BIN2HEX (https://fr.mathworks.com/matlabcentral/fileexchange/1975-bin2hex), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R12.1
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0