mat2cell
2017-10-19 本文已影响13人
大魔王是本人
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