| Author |
Topic  |
|
|
dharmarasu2
Japan
3 Posts |
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 |
|
|
cpyang
USA
1406 Posts |
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
|
 |
|
| |
Topic  |
|
|
|