我不知道在计算元胞数组的元素所占内存时该怎么计算,例如下面的示例:
>> A={zeros(2,2,2),'Hello';17.35,1:10}
A =
[2x2x2 double] 'Hello'
[ 17.3500] [1x10 double]
>> B=A(1,2)
B =
'Hello'
>> class(B)
ans =
cell
>> whos
Name Size Bytes Class
A 2x2 402 cell array
B 1x1 70 cell array
ans 1x4 8 char array
Grand total is 38 elements using 480 bytes