How to slide a smaller matrix over larger matrix and employ element wise multiplication?

4 Ansichten (letzte 30 Tage)
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 Kommentare
Walter Roberson
Walter Roberson am 19 Feb. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Discrete Data Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by