Debug 路漫漫-02

重现标准 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、

猜你喜欢

转载自www.cnblogs.com/shenxiaolin/p/9460880.html