Assuming your text file is named myTextFile.txt and contains only that matrix,
A = readmatrix('myTextFile.txt');
B= mat2cell(A,[1,1],2).';
B= mat2cell(A.',[1,1],2).';
In your example it's unclear whether your splitting the matrix by rows or by columns since both result in the same output. Use the 2nd line above to split by rows and the 3rd line to split by columns. Both produce a 1x2 cell containing two 1x2 vectors.
[update]
This version below is more generalizeable in case the size of your matrix changes.
B = mat2cell(A,ones(size(A,1),1),size(A,2)).';
B = mat2cell(A.',ones(size(A,2),1),size(A,1)).';
Best Answer