Info
此问题已关闭。 请重新打开它进行编辑或回答。
Why i get : Matrix dimensions must agree? What is meant by this error?
1 次查看(过去 30 天)
显示 更早的评论
Why i get the following error
Error using .* Matrix dimensions must agree.
Error in Untitled2 (line 41)
ccc1=sum(sum(u1.*u1.*IM))/sum(sum(u1.*u1));
1 个评论
Stephen23
2017-4-4
编辑:Stephen23
2017-4-4
When I search this forum for "dimensions do not agree" I get 966 results:
Did you look at any of them? This is a very common error that has been explained a thousand times before, and finding information on it is very easy: the top-right of this page has a big white field labeled "Search Answers". It is free for you to use.
回答(1 个)
KSSV
2017-4-4
You see in line number 41, the matrices which you are multiplying are not of same dimensions. You have to get them to similar dimension using imresize. Check the attached file, whether it gives expected result.
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!