我正在尝试通过将一个矢量附加到另一个矢量来创建一个音乐片段。我创建一个行向量并尝试使用声音(ct,8000); 来播放音乐,它会从非单元格数组对象中引发错误单元格内容引用。我该怎么办?这是代码:
z = sin(0*pi*(0:0.000125:1));
g = sin(2*pi*220*2^(10/12)*(0:0.000125:0.25));
f = sin(2*pi*220*2^(8/12)*(0:0.000125:0.25));
eb = sin(2*pi*220*2^(6/12)*(0:0.000125:1));
d = sin(2*pi*220*2^(5/12)*(0:0.000125:1));
ct = [z g g g eb z f f f d];
sound(ct, 8000);
这意味着什么?
Cell contents reference from a non-cell array object