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
 How can I pick the low marks?

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
dcuser Posted - 07/29/2004 : 09:35:17 AM
Hallo all,

I have written some code that helps me to pick up the peaks in my
sine-like curve. The code looks like this:

LT_execute("curve.reset()");
LT_execute("%W = %[%C,'_']");
LT_execute("%W!wks.addcol(PkIndex1)");
LT_execute("%W!wks.addcol(Pkx1)");
LT_execute("%W!wks.col$(%W!wks.ncols).type = 4");
LT_execute("%W!wks.addcol(Pky1)");
LT_execute("curve.data$ = %C");
LT_execute("curve.peakIndex$ = %W_PkIndex1");
LT_execute("curve.pickPeaks.rectHeight = 0.025");
LT_execute("curve.pickPeaks.rectWidth = 0.05");
LT_execute("curve.pickPeaks.minHeight = 0.10");
LT_execute("curve.pickPeaks(1)");
LT_execute("get %W_PkIndex1 -e end");
LT_execute("for ( ii = 1; ii <= end; ii += 1) { %B = curve.data$; index = %W_pkindex1[ii]; %W_Pkx1[ii] = xvalue(index,%B); %W_Pky1[ii] = %B[index];}");


And it works really fine. But now I want/need to pick up the low marks in this curve.
Is there anybody around who could help me?

many thanks,
opasen
2   L A T E S T    R E P L I E S    (Newest First)
dcuser Posted - 08/03/2004 : 09:56:42 AM
Hello Mike,

many thanks for your hint! It works now ;))...
Mike Buess Posted - 08/02/2004 : 8:12:41 PM
Have you tried inverting your curve (multiply by -1) and picking peaks again?

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/02/2004 8:18:24 PM

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