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

3 vues (au cours des 30 derniers jours)
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 commentaires
Walter Roberson
Walter Roberson le 19 Fév 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.
maaham banu
maaham banu le 19 Fév 2020
I want to plot the matrix with surf command

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Discrete Data Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by