I'm trying to create a MATLAB script that converts an 100x100 matrix of positive integers to their unsigned binary values. Example matDec=[1,2;1,2] converted to matBin=[00000001,00000010;00000001,00000010].
I tried something like:
BinI=int2bit(I,8);
where I is the initial matrix and BinI is the matrix.
But I got an 800x100 matrix as a result, meaning that the bits of each element got split into 8 elements.
convertCharsToStrings