重現標准 BTL Model ,using MATLAB:
1、
錯誤使用 cat
要串聯的數組的維度不一致。
出錯 cell2mat (line 83)
m{n} = cat(1,c{:,n});
—— cell2mat(...)括號里cell 必須符合每個行的維度相同。
2、
錯誤使用 sum
數據類型無效。第一個參數必須為數值或邏輯值。
——
3、
無法執行賦值,因為左側的大小為 62101-by-5,右側的大小為 62101-by-1。
出錯 BTL_baseline_v1>graded_solver (line 121)
U(userSet,:) = cell2mat(temp);
—— U(userSet,:) 與cell2mat(temp); 維度不一致。
4、
無法執行賦值,因為左側的大小為 1-by-1,右側的大小為 1-by-2。
出錯 BTL_baseline_v1>calVk (line 266)
eT(:,i) = u(:,i)./eT;
——
5、
沒有為類 'cell' 的值定義函數 'subsindex'。
出錯 BTL_baseline_v1>calVk (line 258)
u = U(sess(1,1),:);
——
6、
未定義與 'cell' 類型的輸入參數相對應的函數 'log'。
出錯 BTL_baseline_v1>graded_solver (line 160)
lh = sum(log(lh));
—— 將 lh = cell2mat(lh); 進一步轉化為 mat
7、