How to return multiple values by colfilt?

조회 수: 5 (최근 30일)
Omar Ali Muhammed
Omar Ali Muhammed 2021년 4월 20일
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개)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by