Using this code but it keeps just giving me a 1x1 cell array
mynewcellarray = mat2cell(oldmatrix, 50, 3)
You should use num2cell:
mynewcellarray=num2cell(oldmatrix)