08-07-2008 02:53 AM
08-07-2008 03:01 AM
Hi Merida,
use a shiftregister on your for loop. The easiest way is to use the build array function in each iteration with option (concatenate inputs), but it would be much better if you first initalized an array with the size you need. Use than the replace array function inside the loop.
The attached picture shows both solutions.
Hope it helps.
Mike
08-07-2008 11:15 AM - edited 08-07-2008 11:15 AM
In terms of memory management the best solution is to pre-allocate. The auto-indexing/reshape next, and the Build Array method the worst.
08-07-2008 02:11 PM
08-07-2008 07:12 PM
08-07-2008 07:14 PM
08-07-2008 10:38 PM
Merida wrote:
There is still one problem, with your examples I get a repeated 10 row pattern all the way down the 1D array for each iteration of the loop.
08-07-2008 11:39 PM
08-08-2008 02:28 AM
08-11-2008 06:56 AM