MATLAB: Convert string to a row matrix

row matrixstring

hay i want to convert a string into a row matrix
wat i have: '01011100100000100001010110010111'
wat i need: [0 1 0 1 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1 1 0 0 1 0 1 1 1]

Best Answer

row_matrix = YourString - '0';