How to slide a smaller matrix over larger matrix and employ element wise multiplication?
3 次查看(过去 30 天)
显示 更早的评论
I have one matrix of THETA_F1 which is 512x509 and THETA_F2 256x321. I want to slide the smaller matrix over the larger one and multiply them and store the values in another matrix and then plot them.
The error I am facing is that matrix dimensions do not agree. Rows and Coloumns is basically the size of THETA_F1
for i=1:3:rows
for j=1:3:coloumns
corr = THETA_F1.*THETA_F2;
end
end
2 个评论
Walter Roberson
2020-2-19
You would be getting out (512-256+1) * (509-321+1) = 257*189 = 48573 different matrices of results, each 256 x 321. What kind of plotting presentation were you thinking of doing that could represent nearly 50000 different arrays that size? How large of a display do you have, exactly? When I looked up the largest known display in the world about a year ago, it was about 10000 times too small to plot all of that at the same time.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!