Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Two matrices combination problem
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I was wondering how to combine the following two matrices like this?and what is it is two big matrices?

0 commentaires
Réponses (1)
José-Luis
le 30 Juin 2016
A = ones(2);
B = reshape(1:9,3,3)';
C = zeros(size(A,1) + size(B,1));
C(1:2:end,1:2:end) = B;
C(2:2:end,2:2:end) = A;
0 commentaires
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!