Re: default empty values in Result Table
Posted by
Herbie on
Jun 24, 2016; 6:59am
URL: http://imagej.273.s1.nabble.com/default-empty-values-in-Result-Table-tp5012931p5016721.html
Good day Sylvia,
the _JavaScript_ in question works perfectly for me.
What do you mean by
"[...] it doesn't _recognize_ the command "new ResultsTable" and
probably also not the setNaNEmptyCells(true)."
Please be aware that the code is written in JavaScript not in the
ImageJ-macro language.
Best
Herbie
::::::::::::::::::::::::::::::::::::::::::::
Am 24.06.16 um 07:19 schrieb Sylvia Neumann:
> rt = new ResultsTable();
> rt.setNaNEmptyCells(true);
> row = 0;
> for (n=0; n<=2*Math.PI; n += 0.1) {
> rt.setValue("n", row, n);
> if (row>2)
> rt.setValue("Sine(n)", row, Math.sin(n));
> if (row<3||row>6)
> rt.setValue("Cos(n)", row, Math.cos(n));
> row++;
> }
> rt.showRowNumbers(false);
> rt.show("Table with Empty Cells");
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html