Matrix conversion
Ältere Kommentare anzeigen
how to get a matrix of the form from a given matrix, for exapmle
a= [2 3 4
5 6 7
8 9 0]
i want a matrix where in each elements are repeated in other matrix as follows
b= [2 2 3 3 4 4
2 2 3 3 4 4
5 5 6 6 7 7
5 5 6 6 7 7
8 8 9 9 0 0
8 8 9 9 0 0]
Akzeptierte Antwort
Weitere Antworten (1)
Andrei Bobrov
am 11 Jan. 2012
a = [2 3 4
5 6 7
8 9 0];
b = kron(a,[1 1;1 1])
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!