Re: can I set numeric value to variable?
Posted by Michael Doube on Apr 14, 2008; 1:17pm
URL: http://imagej.273.s1.nabble.com/can-I-set-numeric-value-to-variable-tp3696568p3696569.html
Hello Sahar,
You have to break the string with this concatenation syntax
"string" -> "st"+variable+"ring
will put the contents of 'variable' between "st" and "ring".
> 2) w = 3072;
> run("Raw...", "(open image=[16-bit Unsigned] width="+w+" height=3072
offset=0
The new string is then passed to the function.
Mike