是我导入的矩阵格式有误吗?实在是太困惑了。。。
下附代码:
A=load('Service.mat');
W1=load('table.mat');
T=10; % number of time periods
N=43; % number of regions
% row-normalize W
W=normw(W1); % function of LeSage
y=A(:,[3]); % column number in the data matrix that corresponds to the dependent variable
x=A(:,[4,5,6,7,8]); % column numbers in the data matrix that correspond to the independent variables
错误使用 sum
数据类型无效。第一个参数必须为数值或逻辑值。
出错 normw (line 33)
nterm = sum(W, n);
出错 demopanelscompare (line 43)
W=normw(W1); % function of LeSage


雷达卡


京公网安备 11010802022788号







