MATLAB: How can i solve this problem ? its easy but i dont know!

i need help

A=[2 6;3 9];
B=[1 2;3 4];
C=[-5 5;5 3];
D=zeros(2,3);
E=5*eye(3);
F=3*ones(2);
G=[2 6 0 0 0 0;3 9 0 0 0 0;0 0 1 2 0 0;0 0 3 4 0 0;0 0 0 0 -5 5;0 0 0 0 5 3]
how can i find create this G matrix using submatrices A,B and C ?

Best Answer

help blkdiag