How to use matlab function to fill or label the previous or next column cells with respect to certain column of of a matrix with a number (3)
조회 수: 5 (최근 30일)
이전 댓글 표시
As clear from figure, this is my M-matrix.
With respect to 2nd colum, in first colum, the 3rd row or 4th row i.e horizentally, i want to fill with 3 i.e. horizentally or diagonally.
similarly in 3rd column, i want to fill 3rd row or 4th rows same like above procedure.
% i want in each colum to have closing ie. startring 3 and then closing 3 i.e. the last one. Thanks for all coopeation. Warm regrads

댓글 수: 0
채택된 답변
Image Analyst
2019년 8월 4일
Try imdilate() -- it's a local max filter.
se = [0,0,0;1,1,1;1,1,1]
outputMatrix = imdilate(inputMatrix, se);
댓글 수: 6
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!