mat2cell是指把元胞数组变换成矩阵;
参考用法如下:
>> C={[1 2] [2];[2 3] [4];[5 6] [7]};
>> C
C =
[1x2 double] [2]
[1x2 double] [4]
[1x2 double] [7]
>>cell2mat(C)
ans =
1 2 2
2 3 4
5 6 7
mat2cell是指把元胞数组变换成矩阵;
参考用法如下:
>> C={[1 2] [2];[2 3] [4];[5 6] [7]};
>> C
C =
[1x2 double] [2]
[1x2 double] [4]
[1x2 double] [7]
>>cell2mat(C)
ans =
1 2 2
2 3 4
5 6 7
本文标题:mat2cell
本文链接:https://www.haomeiwen.com/subject/fvwpuxtx.html
网友评论