convert integer to binary or binary to integer

Version 1.0.0 (1,58 ko) par Thomas
convert a column vetor of integers to a column vector of binaries or vice versa
33 téléchargements
Mise à jour 10 jan. 2021

Afficher la licence

example:
int2bin([2; 5; 15]) = [0 0 1 0;0 1 0 1;1 1 1 1]
or
bin2int([ 0 1 1; 2 2 2], 3) = [4; 26] (in a three digit system)

Citation pour cette source

Thomas (2026). convert integer to binary or binary to integer (https://fr.mathworks.com/matlabcentral/fileexchange/85473-convert-integer-to-binary-or-binary-to-integer), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2020b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Version Publié le Notes de version
1.0.0