MATLAB: Matrix to vector matrix

column-majormatrixreshapetransposevector

ok i know reshape works for this actually..but i want to reshape my matrix like this a = [111 ,101, 100]
a = [111101100]
reshape makes it like : a= [111100110]
so what i want to do is actually put all vectors behind each other..like first row then second row then third so on..is there anyway to do that ?

Best Answer

a = [111 ,101, 100];
num2str(a,'%d')
ans =
111101100