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

2 views (last 30 days)
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;

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!