更新时间:2022-04-25 21:39:33
您可以使用mat2cell
和此oneliner
You can use mat2cell
and this oneliner
C = mat2cell(A, repmat(12900, 5, 1), 17);
mat2cell
的第二个参数是矩阵的行拆分.
The second parameter to mat2cell
is the row split of the matrix.
现在C
是一个单元格数组:
Now C
is a cell array:
C =
[12900x17 double]
[12900x17 double]
[12900x17 double]
[12900x17 double]
[12900x17 double]
和部分矩阵可以按以下方式访问
and the partial matrices can be accessed as
C{1} etc.