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
 independend dataset for calculation

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
mkoetse Posted - 01/19/2004 : 08:30:36 AM
Hello all,

I have the next bit of code:

---
Worksheet wks(strWks);
int rown = GetRownVon(strWks);
Dataset dsV(wks,0);
Curve cvEcd(wks,5); // is Ecd
Curve cvElm(wks,6); // is Elm
int datsize = dsV.GetSize();
cvEcd.SetLowerBound(rown);
cvElm.SetLowerBound(rown);
cvEcd.SetUpperBound(datsize-2*rown);
cvElm.SetUpperBound(datsize-2*rown);
double maxCd = xatymax(cvEcd);
double maxLm = xatymax(cvElm);
---
This works fine, but is there a simple way to get a range of the curve, without using Set Lower and Upperbound? I'd like to plot the whole curve and do the math on only a part of the data.

Regards,

Marc


2   L A T E S T    R E P L I E S    (Newest First)
mkoetse Posted - 01/19/2004 : 11:49:30 AM
Thanx,

Exactly what I was looking for! But, could it be that this way of use of the Curve object is only constructed in version 7.5? (because I get constructor errors after trying to build.)
If so is there a version 7(SR4) work around?

Marc





Edited by - mkoetse on 01/19/2004 2:40:47 PM
cpyang Posted - 01/19/2004 : 10:02:40 AM
To use a range of a plotted curve, the best thing to do is a use a copy constructor, see http://www.originlab.com/forum/topic.asp?TOPIC_ID=2784 where I have posted sample codes.


CP



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