Nested For Loop for 2D Matrix
Ältere Kommentare anzeigen
I want to create a nested for loop that essentially goes through a 2D matrix of 600x1000 dimensions, such that in every loop in both of the dimensions it picks out exactly 51x51 part of the 2D matrix in either of the dimensions and multiplies it to another 51x51 separate matrix.
Akzeptierte Antwort
Weitere Antworten (1)
Matt J
am 11 Nov. 2019
I vaguely wonder whether you are just re-inventing convolution
result = conv2(Matrix,staticMatrix,'valid');
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!