How to return multiple values by colfilt?
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!