MATLAB: Reshape matrix

matrixreshape

i have this matrix 00001110000 00001110000 00001110000 and i want to make it like that
11100000000
11100000000
11100000000
how to do that?
thanks!

Best Answer

Note that the way you indicated your input it looks like a char array. I inferred from your duplicate post that it is a double matrix (you should separate elements)
A = [0 0 0 0 1 1 1 0 0 0 0
0 0 0 0 1 1 1 0 0 0 0
0 0 0 0 1 1 1 0 0 0 0];
Two solutions:
A(:,[5:end 1:4])
or
circshift(A,[1 -4])