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
 Forum for Origin C
 Sorting an XY DATASET in originC

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
dharmarasu2 Posted - 03/10/2004 : 01:14:05 AM
Hello,



Is there a possible way out to sort XY columns in OriginC?

For example, I have two datasets ds1, ds2 holding the data.



I want to duplicate the datasets and the duplicated datasets must be sorted in ascending order.



I tried with the following code:



Dataset ds1("Data1_A"), ds2("Data1_B");

Dataset dds1(ds1), dds2(ds2);





Curve crv;

crv.Attach(dds1, dds2);

crv.Sort(); //sort the X and Y axis



But I am not successful. Looking forward a possible work around .



Thanks in Advance,

Dharma
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 03/10/2004 : 6:59:02 PM
Maybe your Curve was not constructed correctly, try

Worksheet wks("data1");

Curve crv(wks, 0, 1);

crv.Sort();



CP



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