10-07-2006 11:10 AM
10-07-2006 11:26 AM - edited 10-07-2006 11:26 AM
You could create your 1000 x 1000 zero array then replace the first 400 x 400 elements like this
David
Message Edited by David Crawford on 10-07-2006 05:26 PM
10-07-2006 01:05 PM - edited 10-07-2006 01:05 PM
Padding (and truncation) is easiest done with "reshape array" (check the online help).
For a 2D array, just do it in a loop. 🙂 (I assume that you want to keep the column size constant).
Message Edited by altenbach on 10-07-2006 11:07 AM
10-08-2006 05:10 AM
10-08-2006 06:27 AM
Just follow Christian's has suggestion and use Reshape array.
David