up sampling a matrix with non-zero elements.
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Conrad
el 13 de Jul. de 2012
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];
Respuestas (1)
Honglei Chen
el 13 de Jul. de 2012
Editada: Honglei Chen
el 13 de Jul. de 2012
You can use kron
A = [1 2;3 4];
B = kron(A,ones(3))
0 comentarios
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!