How to slide a smaller matrix over larger matrix and employ element wise multiplication?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 19 de Feb. de 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.
Respuestas (0)
Ver también
Categorías
Más información sobre Discrete Data Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!