the issue is with your
it should read
t = reshape(s,length(s)/length(word),length(word));
decimalValues = bin2dec(t');
if you look at your original reshape you can see that it is basically transposed. This is because reshape does not fill in rows first then columns. Reshape takes the array and starts filling in the reshaped matrix starting from column 1 then moves to column 2 and so on.
this short example shows what is happening
x = [1 2 3 4 5 6 7 8 9 10 11 12]