Two matrices combination problem

Hi, I was wondering how to combine the following two matrices like this?and what is it is two big matrices?

Réponses (1)

José-Luis
José-Luis le 30 Juin 2016

0 votes

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;

Cette question est clôturée.

Tags

Question posée :

le 30 Juin 2016

Clôturé :

le 20 Août 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by