Hi Tenorio,
You may be better off using an array and adding each item to the respective index.
e.g.
n = 100; //number of variables
array = newArray(n); //create the array
for (i = 0; i < n; i++){
array[i] = <some calculated value>;
}
//use the values
result = array[17] * array[23]; //to use the values at the 23d and 17th indices
Note, unlike Matlab, IJ macro and Java are zero-indexed ('first'/zeroth element of an array is at array[0]).
Michael
On 12/05/14 11:55, Tenorio wrote:
<
http://www.rvc.ac.uk>
This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html