up sampling a matrix with non-zero elements.
Afficher commentaires plus anciens
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??
Réponses (1)
Honglei Chen
le 13 Juil 2012
Modifié(e) : Honglei Chen
le 13 Juil 2012
You can use kron
A = [1 2;3 4];
B = kron(A,ones(3))
Catégories
En savoir plus sur Multirate Signal Processing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!