int2vec

Convert integer to vector.

You are now following this Submission

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].

Cite As

Jim Simos (2026). int2vec (https://www.mathworks.com/matlabcentral/fileexchange/8329-int2vec), 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.0.0.0