Feeds
질문
Error using * Inner matrix dimensions must agree
I have unequal matrices, in trying to calculate for j = 1 : n Edj(d, j) = y(j,:) * (VV(s+1:s+m,d) / (x(j,:)* V V(1:s,d))...
대략 6년 전 | 답변 수: 1 | 0
1
답변질문
The variable Edj appears to change size consider preallocating
VV(1:size(temp,1),d)=temp; for j=1:n E(d,j) = y(j,:)*VV(s+1:s+m,d) / (x(j,:)*VV(1:s,d)); end Ecros =sum(Edj)/n End...
대략 6년 전 | 답변 수: 1 | 0
