up sampling a matrix with non-zero elements.
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello
I have a matrix A(100 by 100) and I want to upsample the matrix (not by zero arrays) in a way the each cell is replicated in its 3 by 3 neighborhood. So I will have a a 9 cell instead of each cell which I have had at first.
Any suggestion??
댓글 수: 2
Conrad
2012년 7월 13일
Considering the case where [A] = 2x2, you want something like this?
A = [1 2;...
3 4];
B = [1 1 1 2 2 2;...
1 1 1 2 2 2;...
1 1 1 2 2 2;...
3 3 3 4 4 4;...
3 3 3 4 4 4;...
3 3 3 4 4 4];
답변 (1개)
Honglei Chen
2012년 7월 13일
편집: Honglei Chen
2012년 7월 13일
You can use kron
A = [1 2;3 4];
B = kron(A,ones(3))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!