Origin Version (Select Help-->About Origin): 6.1 Operating System:xp Hi: I am programming with labtalk, my question is if i have a curve, i select part of the curve with data selector button, which command i should use in the script to put the data of the selected part of the curve into a new worksheet ( say data2) thanks
Mks1 and mks2 are the indices of the two data markers so run this after you've used the data selector...
i1=mks1; // index of first marker i2=mks2-i1+1; // number of points selected %B=%C; // name of active Y dataset %A=xof(%C); // name of corresponding X dataset win -t D; // create new wks set %H -er i2; // make sure it has enought rows copy -b i1 %A col(A) -b 1 -e i2; // copy X data copy -b i1 %B col(B) -b 1 -e i2; // copy Y data