我想操作单元格数组,并使单元格数组的某些索引包含空矩阵[]。我似乎无法弄清楚如何做到这一点: >> yy=num2cell(1:10)
yy =
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
>> yy{1:2:end}=[]
??? The right hand side of this assignment has too few va
我不知道这里发生了什么。我正在使用R2006b。在我提交错误报告之前,任何有更新版本的人都可以测试它们是否获得相同的行为? 代码:(bug1.m) function bug1
S = struct('nothing',{},'something',{});
add_something(S, 'boing'); % does what I expect
add_something(S.so