How to return multiple values by colfilt?
1 次查看(过去 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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!