How do I create a 50x3 cell array from a 50x3 matrix. Keep just getting a 1x1 cell array with a 50x3 submatrix?

前端 未结 1 620
感动是毒
感动是毒 2021-01-27 04:43

Using this code but it keeps just giving me a 1x1 cell array

mynewcellarray = mat2cell(oldmatrix, 50, 3)
1条回答
  •  迷失自我
    2021-01-27 05:39

    You should use num2cell:

    mynewcellarray=num2cell(oldmatrix)
    

    0 讨论(0)
提交回复
热议问题