Reputation: 478
I have been using MATLAB to finish some work but I have encountered some problem. MATLAB tells me that:
Error using *
Inner matrix dimensions must agree.
Error in iterationHn (line 29)
revisedFup=trVnew*Foldup*Vnew;
But I do have made sure that trVnew,Foldup,Vnew are both 8x8 double matrix. There is no dimension problem I think. So How can solve it?
Thank you!
Upvotes: 0
Views: 4515
Reputation: 17026
This error only happens if you have an error in your dimensions. Try placing a breakpoint on line 29 and inspect the dimensions at that point. You may have accidentally overwritten one of the matrices (e.g. changed its dimensions).
Upvotes: 2