int2vec

Convert integer to vector.

Vous suivez désormais cette soumission

Useful when you want to interpret integers as codewords.It also could be used to convert the output of the binary representation of an integer to vector.

Function call v=int2vec(s,l)
s is the integer to be converted.
l is the length of the integer in bits. For example v=int2vec(110,3)
returns v=[1 1 0].

Citation pour cette source

Jim Simos (2026). int2vec (https://fr.mathworks.com/matlabcentral/fileexchange/8329-int2vec), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0