The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 data of the selected part of a curve

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
sanguo Posted - 03/27/2006 : 6:12:16 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
sanguo Posted - 03/28/2006 : 11:36:44 AM

Thanks a lot, it is fabulous
Mike Buess Posted - 03/28/2006 : 08:17:49 AM
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

Mike Buess
Origin WebRing Member

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000