Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Utility function for Table management
  2. // in ImageJ
  3. // Jean-Christophe Taveau
  4. function setCellByIndex(table,column,row,contents)
  5. {
  6.   selectWindow(table);
  7.   rows=split(getInfo(),'\n');
  8.   words = split(rows[row+1],'\t');
  9.   words[column]=toString(contents);
  10.   print(table,"\\Update"+row+":"+str);
  11.  
  12. }
  13.  
  14. function setCell(table,column,row,contents)
  15. {
  16.   selectWindow(table);
  17.   rows=split(getInfo(),'\n');
  18.   words = split(rows[row+1],'\t');
  19.   words[column]=toString(contents);
  20.   print(table,"\\Update"+row+":"+str);
  21.  
  22. }