0
我正在嘗試用數據創建多維數組。 我有一個17x10x1024空單元陣列:MATLAB:將矢量分配給多維單元陣列
C=cell(length(data(1,:)),10,1024);
% length(data(1,:) = 17
然後我計算(在while循環(17次))載體,其是1024x1:
value = data(:,i) + randn(size(t))*noise_out;
現在我要分配的值這個矢量到陣列中,以這樣的方式即:
'Name of Signal' [] [] [] [] [] [] [] [] []
'in1' [1024x1 double] [] [] [] [] [] [] [] []
'out1' [1024x1 double] [] [] [] [] [] [] [] []
'in2' [1024x1 double] [] [] [] [] [] [] [] []
'out2' [1024x1 double] [] [] [] [] [] [] [] []
'in3' [1024x1 double] [] [] [] [] [] [] [] []
'out3' [1024x1 double] [] [] [] [] [] [] [] []
'in4' [1024x1 double] [] [] [] [] [] [] [] []
'out4' [1024x1 double] [] [] [] [] [] [] [] []
'in5' [1024x1 double] [] [] [] [] [] [] [] []
'out5' [1024x1 double] [] [] [] [] [] [] [] []
'in6' [1024x1 double] [] [] [] [] [] [] [] []
'out6' [1024x1 double] [] [] [] [] [] [] [] []
'in7' [1024x1 double] [] [] [] [] [] [] [] []
'out7' [1024x1 double] [] [] [] [] [] [] [] []
'in8' [1024x1 double] [] [] [] [] [] [] [] []
'out8' [1024x1 double] [] [] [] [] [] [] [] []
我使用下面的:
C(i,2,:) = {value};
% i is the number of loop from 2 to 17
,但問題是,我實際上得到一個字符串'[1024x1雙]',而不是矢量的實際值。
任何想法?