How to return multiple values by colfilt?
조회 수: 5 (최근 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!