Community Profile

photo

Jacob Muvingi


Last seen: 7 months ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


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))...

4 years ago | 1 answer | 0

1

answer

Question


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...

4 years ago | 1 answer | 0

1

answer