The real algorithm for this is: 1) Make a new array of the total finished size you want, followed by 2) "Paste" your current smaller array in the origin of the larger array. I.e.
seed = 1L ; Make up a random "existing array"
existingArray = randomu(seed, 16, 24)
newArray = dblarr(32, 28) ; A 32 x 30 array of 0.0 doubles
newArray[0,0] = existingArray
That last call "pastes" your 'existingArray' into the first 16 columns and 24 rows of the 'newArray'. It is the equivalent of "newArray[0:15, 0:23] = existingArray", but is a more efficient syntax.
James Jones
|