ā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