Copying a small quadratic matrix into a bigger quadratic matrix
Subject: Copying a small quadratic matrix into a bigger quadratic matrix
From: Eberhard Franz
Date: Thu, 8 Apr 2010 08:07:20 +0000 (UTC)
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