Hi Drew,
assuming that you are writing an ImageJ macro:
Currently there are no 2D arrays or arrays of arrays in the ImageJ macro language. Also, as far as I know, you can't have variables whose name is generated by the macro code.
Why do you need 100 small arrays, if you have the data already in four arrays?
Michael
________________________________________________________________
On Jul 10, 2013, at 20:04, drew10 wrote:
> Hi all,
>
> I currently have 4 arrays (named North, East, South, and West) with 100
> elements each.
>
> However, I would like to generate a 100 NEW arrays. I want the first array
> to contain 4 elements - the first element of each of the North, East, South,
> and West arrays. I want the second array to contain the second elements of
> North, East, South, West, and so on and so forth.
>
> This was my idea for a code, however I think that my problem stems from not
> knowing how to generate a "unique" name for each of the 100 arrays. I would
> like to name the new Arrays something like "Total_1, Total_2, Total_3" etc.
>
> for(i=0; i<100; i++) {
> Total_i = newArray(24);
> SD_i[0] = North[i];
> SD_i[1] = East[i];
> SD_i[2] = South[i];
> SD_i[3] = West[i];
> }
>
> Any help would be appreciated!!!!
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html