I am trying to cut one row

x = [1 2 3 4 5 6 7 8 9 10 11 12]

into multiple rows of equal length so that

y(row1) = [1 2 3 4

y(row2) = 5 6 7 8

y(row3) = 9 10 11 12]

I know I can achieve this using a combination of rbind and cbind, but the dataset I am trying to apply this to is much larger than the example, so I am looking for a way to do it more quickly and automatically. I tried cut and cut2 but those didnt work either

jelle