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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 How can I pick the low marks?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dcuser

Germany
Posts

Posted - 07/29/2004 :  09:35:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 08/02/2004 :  8:12:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

dcuser

Germany
Posts

Posted - 08/03/2004 :  09:56:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Mike,

many thanks for your hint! It works now ;))...
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000