Copying a small quadratic matrix into a bigger quadratic matrix



Hi everybody,

I just want to copy e.g. a 4x4 matrix into e.g. 6x6 at a certain location. I
found that this could be done via two nested loops:

for i:3 thru 6 step 1 do for j:3 thru 6 step 1 do Kge2_ex[i,j]:Kge2[i-2,j-2];

Is there any smarter way?

Thank you in advance

Eberhard