up sampling a matrix with non-zero elements.
显示 更早的评论
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??
回答(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))
类别
在 帮助中心 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!