importClass(Packages.ij.IJ); importClass(Packages.ij.util.ArrayUtil); x=[2,1,2,5,4,3]; m=x.medianSort; //tried medianSort(x) but that states medianSort is not defined IJ.log(m);
The output is “undefined” and with no errors ?!? MedianSort is there in ArrayUtil Class, but still ‘not found’… API Code suggests it will do the sort and output the median. What am I doing wrong?
thanks for any insights.