aplly to matrix a probability distribution for submatrix

Hello ! I would apply to my matrix , a generical probability distribution (such as normal) for submatrix IXJ ( i = j ) (for example, 4x4 or 3x3) . I'm attaching a picture to explane better my problem. how can I write this code? thanks

 Accepted Answer

It appears for your case, if your kernel (or probability distribution) is symmetric you can use both conv2() or xcorr2(). If it is not symmetric you should use xcorr2)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!