Dear Bvg15,
Please try the sample script below:
doc -e W
{
newsheet col:=4; //add Sheet #5
loop(ii,1,4)
{
range rS = $(ii)!3;
range rN = 5!$(ii);
rN = rS;
}
colstats irng:=1:4 col:=<optional> n:=<optional> median:=<optional>;
newsheet col:=4; //add Sheet #6
loop(ii,1,4)
{
range rS = $(ii)!2;
range rN = 6!$(ii);
rN = rS;
}
colstats irng:=1:4 col:=<optional> n:=<optional> median:=<optional>;
}
please refer to these help page:
http://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects
http://www.originlab.com/doc/X-Function/ref/colstats
To do further processing, please refer to the relative LabTalk script example under this category:
http://www.originlab.com/doc/LabTalk/examples
In addition, Origin 8 has been released long time ago, we won't fully support it any more, please consider upgrade your Origin to our current version, 2016 SR2.
Here is the demo version,
http://www.originlab.com/demodownload.aspx
Thanks,
Shirley
Originlab Technical Service Team