Login  Register

Re: select one column from table

Posted by Michael Cammer on Jul 13, 2006; 7:31pm
URL: http://imagej.273.s1.nabble.com/select-one-column-from-table-tp3702168p3702170.html

In the meantime....
This is an example of macro code we use to extract columns that are then
printed to the Log window for cut and paste to Excel.

     area = newArray(nResults());
     x = newArray(nResults());
     y = newArray(nResults());
     print("number \t X \t Y \t area \t dist_to_center");
     for (i=0;i<nResults();i++){
       x[i] = getResult("X", i);
       y[i] = getResult("Y", i);
       area[i] =  getResult("Area", i);
       dx = xc - x[i];  dy = yc - y[i];  distance = sqrt ((dx*dx) + (dy*dy));
       print(i+1, "\t", x[i], "\t", y[i], "\t", area[i], "\t", distance);
     }


At 01:16 PM 07/13/06 -0400, you wrote:
>>Can I select only one column from a results table to copy and paste into
>>Excel? I can't figure out how to do this on a histogram list table.
>
>This is one of the "planned features" on the list at
><http://rsb.info.nih.gov/ij/docs/to-do-list.html>.
>
>-wayne

____________________________________________________________________________
Michael Cammer   Analytical Imaging Facility   Albert Einstein Coll. of Med.
URL:  http://www.aecom.yu.edu/aif/