T=11; % number of time periods
N=26; % 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:15); % column numbers in the data matrix that correspond to the independent variables
for t=1:T
t1=(t-1)*N+1;t2=t*N;
wx(t1:t2,:)=W*x(t1:t2,:);
end
xconstant=ones(N*T,1);
[nobs K]=size(x);
运行过程中出现了
Subscripted assignment dimension mismatch.
Error in ==> Untitled3 at 48
wx(t1:t2,:)=W*x(t1:t2,:);
请问怎么修改呀