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:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Anti-Spam Code:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
[quote][i]Originally posted by dcuser[/i] [br]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 [/quote]
Check here to include your profile signature.
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
Snitz Forums 2000