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
 LabTalk Forum
 using pkfind x-function

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
gatordan82 Posted - 06/10/2010 : 3:58:56 PM
originpro 8.0.63.988 SR6
windows xp

I'd like to run the pkfind x-function on a dataset and pick out 3 peaks. They always have (nearly) the same x-values, but their amplitudes can vary greatly. I know how to filter the search so that it will pick out the 3 largest peaks, but sometimes there are other peaks with greater amplitude that I'm not looking for. Is there a convenient way to limit the search to particular values of x?

1   L A T E S T    R E P L I E S    (Newest First)
Shirley_GZ Posted - 06/11/2010 : 04:57:07 AM
Hi,

If these peaks always have the same X values as you said, I think there is a workaround to limit the peak finding. You can specify the input data range to exclude the forth peak, such as x=[800, 3000]. Here, you can use Data Selector tool to select the data range firstly, then run the pkFind function. Or you can use the variable "iy" of function pkFind to select interesting rows.

For example,
pkFind iy:=col(b)[1:50] ocenter_x:=<input>!(<new>) ocenter_y:=<input>!(<new>)

Best regards,
Shirley

Originlab Technical Service Team

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