How to slide a smaller matrix over larger matrix and employ element wise multiplication?
조회 수: 1 (최근 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!