In MATLAB, you can split columns of a matrix using the (:,) notation. Here is an example:
main.m
% Create a sample matrixA = [1234; 5678; 9101112];
% Split the first two columns and store them in a new matrixB = A(:, 1:2);
% Split the last two columns and store them in a new matrixC = A(:, 3:4);
214 chars
9 lines
In the example above, matrix A is split into two new matrices B and C containing the specified columns.