问题
Using this code but it keeps just giving me a 1x1 cell array
mynewcellarray = mat2cell(oldmatrix, 50, 3)
回答1:
You should use num2cell:
mynewcellarray=num2cell(oldmatrix)
来源:https://stackoverflow.com/questions/21336105/how-do-i-create-a-50x3-cell-array-from-a-50x3-matrix-keep-just-getting-a-1x1-ce