How to return multiple values by colfilt?

3 次查看(过去 30 天)
A matrix A 1000x1000, needd to be subdivided into patches of 5x5 (let us called B). then B is processed by subdividing it into 5 arrays of size 3x3 (let us called C). Finaly, the center point of each suarray (C1....C5) is replaced by the mean of each surrounfing elements.
C1=B(2:4,2:4);
C2=B(1:3,1:3);
C3=B(1:3,3:5);
C4=B(3:5,1:3);
C5=B(3:5,3:5);
These multiple changes need to returned as processing results (in our example 5 center values are changed at the same time). can we use colfilt with distinict option.

回答(0 个)

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by