MATLAB: Convert string to matrix

arraybinarycell arraysmathematicsmatricesmatrixmatrix arraystringsvector

how convert stream of bits to matrix for example A = ['01100101']; I want B = [0,1,1,0,0,1,0,1];

Best Answer

B = A - '0';