Re: Problem about macro Math function--add variable values from an array to a stack
Posted by Ali_ on Nov 13, 2015; 9:53am
URL: http://imagej.273.s1.nabble.com/Problem-about-macro-Math-function-add-variable-values-from-an-array-to-a-stack-tp5014898p5014942.html
Original code:
run("Add...", "value=Ar[i-1] Slice");
Modified code:
run("Add...", "value=" + (Ar[i-1]) + " Slice");
The command requires a string. So, the "numerical" value of an array element should be converted to "character".