MATLAB: How to split a column into many equal columns

columnsplit

dear
I have a column of say 200×2 and I need to split into four columns of 50×2 to create a matrix size 50×8. I need to write it in general because I have many cases like a column of 1000×2 and so on. can anyone give me an idea.
many thanks,
Nadia,

Best Answer

Try this:
newMatrix = reshape(originalMatrix, [], desiredNumberOfColumns);
Related Question