Macro Language: Assigning individual values to an array
Posted by Rick Simmons on Jun 22, 2010; 7:41pm
URL: http://imagej.273.s1.nabble.com/Macro-Language-Assigning-individual-values-to-an-array-tp3687853.html
Hello all,
Is there a way to assign values to an array from within a loop?
//For example: assume that I have 6 equal length arrays (y1 ... y6)
for (i=1; i<y1.length; i++) {
sumY = y1[i] + y2[i] + y3[i] + y4[i] + y5[i] + y6[i];
sumArray[i] = sumY; //<<< of course, this does not work - is there
another way????
}
---------------------------------------------------------------------------------------------------------
This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited.
All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment.
---------------------------------------------------------------------------------------------------------