MATLAB: Fastest & most effective way to create this matrix:

matrix manipulationspeed

Hey there, I have been searching for hours for a good solution & not found one yet. I need to create this matrix (6X6):
A = 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 1 2 3
0 0 0 4 5 6
0 0 0 7 8 9
It must be in an effective & short way. Thank you if anyone can help with this one.

Best Answer

one way
a =[1 2 3
4 5 6
7 8 9];
out = kron([0 0 ; 0 1],a);