【发布时间】:2019-08-01 21:19:45
【问题描述】:
我正在研究 matlab 2014,我有一个 5124x2 的矩阵,我想提取所有 2562 个方阵。 我发现唯一的解决方案是使用 mat2Cell,但它对我不起作用。最后我真的不需要单元格数组,我想要的只是所有的方阵
%example of data
A = rand(5124,2);
C = mat2cell(A,2,2*ones(2562,1));
我收到以下错误:
Error using mat2cell (line 106)
Input arguments, D1 through D2, must sum to each dimension of the input matrix size, [5124 2].'
你能帮帮我吗?谢谢
【问题讨论】: